diff options
author | zhanghailiang <zhang.zhanghailiang@huawei.com> | 2020-02-24 14:54:09 +0800 |
---|---|---|
committer | Juan Quintela <quintela@redhat.com> | 2020-02-28 10:13:54 +0100 |
commit | f51d0b4178738bba87d796eba7444f6cdb3aa0fd (patch) | |
tree | 9de29b7f1cf05ce3e51993e0d2b25b3fbcb92074 | |
parent | 6ad8ad38d0404ee286f713e8d1f4bc2aad7eaec1 (diff) | |
download | qemu-f51d0b4178738bba87d796eba7444f6cdb3aa0fd.zip qemu-f51d0b4178738bba87d796eba7444f6cdb3aa0fd.tar.gz qemu-f51d0b4178738bba87d796eba7444f6cdb3aa0fd.tar.bz2 |
savevm: Don't call colo_init_ram_cache twice
This helper has been called twice which is wrong.
Left the one where called while get COLO enable message
from source side.
Signed-off-by: zhanghailiang <zhang.zhanghailiang@huawei.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
-rw-r--r-- | migration/migration.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/migration/migration.c b/migration/migration.c index 9227225..0b2045c 100644 --- a/migration/migration.c +++ b/migration/migration.c @@ -489,11 +489,6 @@ static void process_incoming_migration_co(void *opaque) goto fail; } - if (colo_init_ram_cache() < 0) { - error_report("Init ram cache failed"); - goto fail; - } - qemu_thread_create(&mis->colo_incoming_thread, "COLO incoming", colo_process_incoming_thread, mis, QEMU_THREAD_JOINABLE); mis->have_colo_incoming_thread = true; |