diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/migration/migration.h | 1 | ||||
-rw-r--r-- | include/sysemu/sysemu.h | 8 |
2 files changed, 9 insertions, 0 deletions
diff --git a/include/migration/migration.h b/include/migration/migration.h index 82cc3a6..0bb4383 100644 --- a/include/migration/migration.h +++ b/include/migration/migration.h @@ -35,6 +35,7 @@ #define QEMU_VM_SUBSECTION 0x05 #define QEMU_VM_VMDESCRIPTION 0x06 #define QEMU_VM_CONFIGURATION 0x07 +#define QEMU_VM_COMMAND 0x08 #define QEMU_VM_SECTION_FOOTER 0x7e struct MigrationParams { diff --git a/include/sysemu/sysemu.h b/include/sysemu/sysemu.h index 470445f..0a8790e 100644 --- a/include/sysemu/sysemu.h +++ b/include/sysemu/sysemu.h @@ -84,6 +84,12 @@ void hmp_info_snapshots(Monitor *mon, const QDict *qdict); void qemu_announce_self(void); +/* Subcommands for QEMU_VM_COMMAND */ +enum qemu_vm_cmd { + MIG_CMD_INVALID = 0, /* Must be 0 */ + MIG_CMD_MAX +}; + bool qemu_savevm_state_blocked(Error **errp); void qemu_savevm_state_begin(QEMUFile *f, const MigrationParams *params); @@ -92,6 +98,8 @@ int qemu_savevm_state_iterate(QEMUFile *f); void qemu_savevm_state_cleanup(void); void qemu_savevm_state_complete_precopy(QEMUFile *f); uint64_t qemu_savevm_state_pending(QEMUFile *f, uint64_t max_size); +void qemu_savevm_command_send(QEMUFile *f, enum qemu_vm_cmd command, + uint16_t len, uint8_t *data); int qemu_loadvm_state(QEMUFile *f); typedef enum DisplayType |