]> git.proxmox.com Git - mirror_qemu.git/commit - migration/colo-failover.c
COLO: Introduce state to record failover process
authorzhanghailiang <zhang.zhanghailiang@huawei.com>
Thu, 27 Oct 2016 06:43:04 +0000 (14:43 +0800)
committerAmit Shah <amit@amitshah.net>
Sun, 30 Oct 2016 09:47:39 +0000 (15:17 +0530)
commitaef060850bd0e35aa7128e0ae3cef9d62c328314
tree00d1c224767ef8cf90e230ad56000683b999718e
parentd89e666e0666a0023e4aa6b6b4c4d25d049c5215
COLO: Introduce state to record failover process

When handling failover, COLO processes differently according to
the different stage of failover process, here we introduce a global
atomic variable to record the status of failover.

We add four failover status to indicate the different stage of failover process.
You should use the helpers to get and set the value.

Signed-off-by: zhanghailiang <zhang.zhanghailiang@huawei.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/failover.h
migration/colo-failover.c
migration/colo.c
migration/trace-events
qapi-schema.json