mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
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>
This commit is contained in:
parent
d6b6aec409
commit
88c16567d2
3 changed files with 78 additions and 0 deletions
|
@ -584,6 +584,33 @@ Example:
|
|||
"arguments": { "filename": "/tmp/save" } }
|
||||
<- { "return": {} }
|
||||
|
||||
EQMP
|
||||
|
||||
{
|
||||
.name = "xen-load-devices-state",
|
||||
.args_type = "filename:F",
|
||||
.mhandler.cmd_new = qmp_marshal_xen_load_devices_state,
|
||||
},
|
||||
|
||||
SQMP
|
||||
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.
|
||||
|
||||
Arguments:
|
||||
|
||||
- "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.
|
||||
|
||||
Example:
|
||||
|
||||
-> { "execute": "xen-load-devices-state",
|
||||
"arguments": { "filename": "/tmp/resume" } }
|
||||
<- { "return": {} }
|
||||
|
||||
EQMP
|
||||
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue