mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
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:
parent
aef060850b
commit
b3f7f0c5e6
4 changed files with 55 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue