Commit f51d0b41 authored by zhanghailiang's avatar zhanghailiang Committed by Juan Quintela
Browse files

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: default avatarzhanghailiang <zhang.zhanghailiang@huawei.com>
Reviewed-by: default avatarJuan Quintela <quintela@redhat.com>
Signed-off-by: default avatarJuan Quintela <quintela@redhat.com>
parent 6ad8ad38
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -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;