]> git.proxmox.com Git - mirror_qemu.git/commit - migration/migration.c
migration: Switch to COLO process after finishing loadvm
authorzhanghailiang <zhang.zhanghailiang@huawei.com>
Thu, 27 Oct 2016 06:42:55 +0000 (14:42 +0800)
committerAmit Shah <amit@amitshah.net>
Sun, 30 Oct 2016 09:47:39 +0000 (15:17 +0530)
commit25d0c16f625feb3b6b9bf8079388cdd314e63916
treef216697734a529d4b33828e19916f82acce12636
parent0b827d5e7291193887d22d058bc20c12b423047c
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>
include/migration/colo.h
include/migration/migration.h
migration/colo-comm.c
migration/colo.c
migration/migration.c
stubs/migration-colo.c