mirror of
https://github.com/qemu/qemu.git
synced 2024-12-15 07:23:52 +08:00
1ef1cee7db
Fix up the reference to qmp-commands.hx in qmp.c. Missed in commit5032a16d1d
. Fix up the reference to qmp-commands.txt in docs/xen-save-devices-state.txt. Missed in commit4d8bb958fa
. Signed-off-by: Markus Armbruster <armbru@redhat.com> Message-Id: <20180211093607.27351-29-armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Michael Roth <mdroth@linux.vnet.ibm.com> Signed-off-by: Eric Blake <eblake@redhat.com>
34 lines
998 B
Plaintext
34 lines
998 B
Plaintext
= Save Devices =
|
|
|
|
QEMU has code to load/save the state of the guest that it is running.
|
|
These are two complementary operations. Saving the state just does
|
|
that, saves the state for each device that the guest is running.
|
|
|
|
These operations are normally used with migration (see migration.txt),
|
|
however it is also possible to save the state of all devices to file,
|
|
without saving the RAM or the block devices of the VM.
|
|
|
|
The save operation is available as QMP command xen-save-devices-state.
|
|
|
|
|
|
The binary format used in the file is the following:
|
|
|
|
|
|
-------------------------------------------
|
|
|
|
32 bit big endian: QEMU_VM_FILE_MAGIC
|
|
32 bit big endian: QEMU_VM_FILE_VERSION
|
|
|
|
for_each_device
|
|
{
|
|
8 bit: QEMU_VM_SECTION_FULL
|
|
32 bit big endian: section_id
|
|
8 bit: idstr (ID string) length
|
|
string: idstr (ID string)
|
|
32 bit big endian: instance_id
|
|
32 bit big endian: version_id
|
|
buffer: device specific data
|
|
}
|
|
|
|
8 bit: QEMU_VM_EOF
|