From b3f7f0c5e6449be7275f1762bccbfa2177395a3b Mon Sep 17 00:00:00 2001 From: zhanghailiang Date: Thu, 27 Oct 2016 14:43:05 +0800 Subject: 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 Signed-off-by: Li Zhijian Reviewed-by: Dr. David Alan Gilbert Reviewed-by: Amit Shah Signed-off-by: Amit Shah --- migration/colo-failover.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'migration/colo-failover.c') diff --git a/migration/colo-failover.c b/migration/colo-failover.c index 6cca039eb9..cc229f5ab1 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) -- cgit v1.2.3