aboutsummaryrefslogtreecommitdiff
path: root/migration/colo-failover.c
diff options
context:
space:
mode:
authorzhanghailiang <zhang.zhanghailiang@huawei.com>2016-10-27 14:43:05 +0800
committerAmit Shah <amit@amitshah.net>2016-10-30 15:17:39 +0530
commitb3f7f0c5e6449be7275f1762bccbfa2177395a3b (patch)
treecea5d794796e9ed0383708e1a508022d59738444 /migration/colo-failover.c
parentaef060850bd0e35aa7128e0ae3cef9d62c328314 (diff)
downloadqemu-b3f7f0c5e6449be7275f1762bccbfa2177395a3b.zip
qemu-b3f7f0c5e6449be7275f1762bccbfa2177395a3b.tar.gz
qemu-b3f7f0c5e6449be7275f1762bccbfa2177395a3b.tar.bz2
COLO: Implement the process of failover for primary VM
For primary side, if COLO gets failover request from users. To be exact, gets 'x_colo_lost_heartbeat' command. COLO thread will exit the loop while the failover BH does the cleanup work and resumes VM. 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 'migration/colo-failover.c')
-rw-r--r--migration/colo-failover.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/migration/colo-failover.c b/migration/colo-failover.c
index 6cca039..cc229f5 100644
--- a/migration/colo-failover.c
+++ b/migration/colo-failover.c
@@ -36,7 +36,7 @@ static void colo_failover_bh(void *opaque)
return;
}
- /* TODO: Do failover work */
+ colo_do_failover(NULL);
}
void failover_request_active(Error **errp)