savevm: Don't call colo_init_ram_cache twice
authorzhanghailiang <zhang.zhanghailiang@huawei.com>
Mon, 24 Feb 2020 06:54:09 +0000 (14:54 +0800)
committerJuan Quintela <quintela@redhat.com>
Fri, 28 Feb 2020 09:13:54 +0000 (10:13 +0100)
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>
migration/migration.c

index 92272250f45e00eed7f8dae2878543c6233d4159..0b2045ccbd2a738332448280032593375477721e 100644 (file)
@@ -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;