summaryrefslogtreecommitdiffstats
path: root/stubs
diff options
context:
space:
mode:
authorzhanghailiang2016-10-27 08:42:55 +0200
committerAmit Shah2016-10-30 10:47:39 +0100
commit25d0c16f625feb3b6b9bf8079388cdd314e63916 (patch)
treef216697734a529d4b33828e19916f82acce12636 /stubs
parentmigration: Enter into COLO mode after migration if COLO is enabled (diff)
downloadqemu-25d0c16f625feb3b6b9bf8079388cdd314e63916.tar.gz
qemu-25d0c16f625feb3b6b9bf8079388cdd314e63916.tar.xz
qemu-25d0c16f625feb3b6b9bf8079388cdd314e63916.zip
migration: Switch to COLO process after finishing loadvm
Switch from normal migration loadvm process into COLO checkpoint process if COLO mode is enabled. We add three new members to struct MigrationIncomingState, 'have_colo_incoming_thread' and 'colo_incoming_thread' record the COLO related thread for secondary VM, 'migration_incoming_co' records the original migration incoming coroutine. Signed-off-by: zhanghailiang <zhang.zhanghailiang@huawei.com> Signed-off-by: Li Zhijian <lizhijian@cn.fujitsu.com> Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Reviewed-by: Amit Shah <amit.shah@redhat.com> Signed-off-by: Amit Shah <amit@amitshah.net>
Diffstat (limited to 'stubs')
-rw-r--r--stubs/migration-colo.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/stubs/migration-colo.c b/stubs/migration-colo.c
index 0c8eef4f38..7b723954d5 100644
--- a/stubs/migration-colo.c
+++ b/stubs/migration-colo.c
@@ -23,6 +23,16 @@ bool migration_in_colo_state(void)
return false;
}
+bool migration_incoming_in_colo_state(void)
+{
+ return false;
+}
+
void migrate_start_colo_process(MigrationState *s)
{
}
+
+void *colo_process_incoming_thread(void *opaque)
+{
+ return NULL;
+}