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>
This commit is contained in:
zhanghailiang 2020-02-24 14:54:09 +08:00 committed by Juan Quintela
parent 6ad8ad38d0
commit f51d0b4178

View 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;