COLO: Implement the process of failover for primary VM
commitb3f7f0c5e6449be7275f1762bccbfa2177395a3b
authorzhanghailiang <zhang.zhanghailiang@huawei.com>
Thu, 27 Oct 2016 06:43:05 +0000 (27 14:43 +0800)
committerAmit Shah <amit@amitshah.net>
Sun, 30 Oct 2016 09:47:39 +0000 (30 15:17 +0530)
treecea5d794796e9ed0383708e1a508022d59738444
parentaef060850bd0e35aa7128e0ae3cef9d62c328314
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>
include/migration/colo.h
include/migration/failover.h
migration/colo-failover.c
migration/colo.c