ui: mix misleading comments & return types of VNC I/O helper methods
[qemu/ar7.git] / docs / xen-save-devices-state.txt
bloba72ecc80818ec872151b0882b173d2fad8374a39
1 = Save Devices =
3 QEMU has code to load/save the state of the guest that it is running.
4 These are two complementary operations.  Saving the state just does
5 that, saves the state for each device that the guest is running.
7 These operations are normally used with migration (see migration.txt),
8 however it is also possible to save the state of all devices to file,
9 without saving the RAM or the block devices of the VM.
11 This operation is called "xen-save-devices-state" (see
12 qmp-commands.txt)
15 The binary format used in the file is the following:
18 -------------------------------------------
20 32 bit big endian: QEMU_VM_FILE_MAGIC
21 32 bit big endian: QEMU_VM_FILE_VERSION
23 for_each_device
25     8 bit:              QEMU_VM_SECTION_FULL
26     32 bit big endian:  section_id
27     8 bit:              idstr (ID string) length
28     string:             idstr (ID string)
29     32 bit big endian:  instance_id
30     32 bit big endian:  version_id
31     buffer:             device specific data
34 8 bit: QEMU_VM_EOF