summaryrefslogtreecommitdiff
path: root/qapi-schema.json
diff options
context:
space:
mode:
authorWen Congyang <wency@cn.fujitsu.com>2016-06-03 17:58:34 +0800
committerStefano Stabellini <sstabellini@kernel.org>2016-06-13 11:50:53 +0100
commit88c16567d2cd23da328787187910b013ee43ebca (patch)
tree27991f5da8d3bb9ca391cc0edcda4ef84d33d5c8 /qapi-schema.json
parentd6b6aec4091a11e5429aac4d56ad0295c5316375 (diff)
downloadqemu-88c16567d2cd23da328787187910b013ee43ebca.tar.gz
Introduce "xen-load-devices-state"
Introduce a "xen-load-devices-state" QAPI command that can be used to load the state of all devices, but not the RAM or the block devices of the VM. We only have hmp commands savevm/loadvm, and qmp commands xen-save-devices-state. We use this new command for COLO: 1. suspend both primary vm and secondary vm 2. sync the state 3. resume both primary vm and secondary vm In such case, we need to update all devices' state in any time. Signed-off-by: Wen Congyang <wency@cn.fujitsu.com> Signed-off-by: Changlong Xie <xiecl.fnst@cn.fujitsu.com> Reviewed-by: Anthony PERARD <anthony.perard@citrix.com> Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Signed-off-by: Stefano Stabellini <sstabellini@kernel.org>
Diffstat (limited to 'qapi-schema.json')
-rw-r--r--qapi-schema.json14
1 files changed, 14 insertions, 0 deletions
diff --git a/qapi-schema.json b/qapi-schema.json
index 8483bdfcce..48c3a6f5cd 100644
--- a/qapi-schema.json
+++ b/qapi-schema.json
@@ -4201,6 +4201,20 @@
'data': [ 'none', 'record', 'play' ] }
##
+# @xen-load-devices-state:
+#
+# Load the state of all devices from file. The RAM and the block devices
+# of the VM are not loaded by this command.
+#
+# @filename: the file to load the state of the devices from as binary
+# data. See xen-save-devices-state.txt for a description of the binary
+# format.
+#
+# Since: 2.7
+##
+{ 'command': 'xen-load-devices-state', 'data': {'filename': 'str'} }
+
+##
# @GICCapability:
#
# The struct describes capability for a specific GIC (Generic