summaryrefslogtreecommitdiffstats
path: root/qapi-schema.json
diff options
context:
space:
mode:
authorzhanghailiang2016-10-27 08:43:04 +0200
committerAmit Shah2016-10-30 10:47:39 +0100
commitaef060850bd0e35aa7128e0ae3cef9d62c328314 (patch)
tree00d1c224767ef8cf90e230ad56000683b999718e /qapi-schema.json
parentCOLO: Add 'x-colo-lost-heartbeat' command to trigger failover (diff)
downloadqemu-aef060850bd0e35aa7128e0ae3cef9d62c328314.tar.gz
qemu-aef060850bd0e35aa7128e0ae3cef9d62c328314.tar.xz
qemu-aef060850bd0e35aa7128e0ae3cef9d62c328314.zip
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>
Diffstat (limited to 'qapi-schema.json')
-rw-r--r--qapi-schema.json18
1 files changed, 18 insertions, 0 deletions
diff --git a/qapi-schema.json b/qapi-schema.json
index a18484115f..8a7b527091 100644
--- a/qapi-schema.json
+++ b/qapi-schema.json
@@ -840,6 +840,24 @@
'data': [ 'unknown', 'primary', 'secondary'] }
##
+# @FailoverStatus
+#
+# An enumeration of COLO failover status
+#
+# @none: no failover has ever happened
+#
+# @require: got failover requirement but not handled
+#
+# @active: in the process of doing failover
+#
+# @completed: finish the process of failover
+#
+# Since: 2.8
+##
+{ 'enum': 'FailoverStatus',
+ 'data': [ 'none', 'require', 'active', 'completed'] }
+
+##
# @x-colo-lost-heartbeat
#
# Tell qemu that heartbeat is lost, request it to do takeover procedures.