aboutsummaryrefslogtreecommitdiff
path: root/migration
diff options
context:
space:
mode:
authorzhanghailiang <zhang.zhanghailiang@huawei.com>2020-02-24 14:54:09 +0800
committerJuan Quintela <quintela@redhat.com>2020-02-28 10:13:54 +0100
commitf51d0b4178738bba87d796eba7444f6cdb3aa0fd (patch)
tree9de29b7f1cf05ce3e51993e0d2b25b3fbcb92074 /migration
parent6ad8ad38d0404ee286f713e8d1f4bc2aad7eaec1 (diff)
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>
Diffstat (limited to 'migration')
-rw-r--r--migration/migration.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/migration/migration.c b/migration/migration.c
index 92272250f4..0b2045ccbd 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;