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>
This commit is contained in:
zhanghailiang 2016-10-27 14:43:05 +08:00 committed by Amit Shah
parent aef060850b
commit b3f7f0c5e6
4 changed files with 55 additions and 1 deletions

View file

@ -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)