hw/intc/i8259: Refactor pic_read_irq() to avoid uninitialized variable
[qemu/ar7.git] / docs / xen-save-devices-state.txt
blob1912ecad258b922cabda2976c20c1f4d6ca46e2a
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 The save operation is available as QMP command xen-save-devices-state.
14 The binary format used in the file is the following:
17 -------------------------------------------
19 32 bit big endian: QEMU_VM_FILE_MAGIC
20 32 bit big endian: QEMU_VM_FILE_VERSION
22 for_each_device
24     8 bit:              QEMU_VM_SECTION_FULL
25     32 bit big endian:  section_id
26     8 bit:              idstr (ID string) length
27     string:             idstr (ID string)
28     32 bit big endian:  instance_id
29     32 bit big endian:  version_id
30     buffer:             device specific data
33 8 bit: QEMU_VM_EOF