diff options
author | Yonit Halperin <yhalperi@redhat.com> | 2012-08-05 10:12:48 +0300 |
---|---|---|
committer | Yonit Halperin <yhalperi@redhat.com> | 2012-08-27 09:13:03 +0300 |
commit | 1f85f1de65301927cac1a053da91e08901d81c46 (patch) | |
tree | 42618d3648ab8f537760f1e5bea088eb2c770441 /server/migration_protocol.h | |
parent | 99ea64ac5a5243e56acc5f1991780d675c98ccd7 (diff) | |
download | spice-1f85f1de65301927cac1a053da91e08901d81c46.tar.gz spice-1f85f1de65301927cac1a053da91e08901d81c46.tar.xz spice-1f85f1de65301927cac1a053da91e08901d81c46.zip |
migration_protocol: add migration data for spicevmc
Diffstat (limited to 'server/migration_protocol.h')
-rw-r--r-- | server/migration_protocol.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/server/migration_protocol.h b/server/migration_protocol.h index 7a1cb1dd..127ab0a4 100644 --- a/server/migration_protocol.h +++ b/server/migration_protocol.h @@ -51,6 +51,17 @@ typedef struct __attribute__ ((__packed__)) SpiceMigrateDataCharDevice { SpiceMigrateDataCharDevice - sizeof(SpiceMigrateDataHeader) */ } SpiceMigrateDataCharDevice; +/* ******** + * spicevmc + * ********/ + +#define SPICE_MIGRATE_DATA_SPICEVMC_VERSION 1 /* NOTE: increase version when CHAR_DEVICE_VERSION + is increased */ +#define SPICE_MIGRATE_DATA_SPICEVMC_MAGIC (*(uint32_t *)"SVMD") +typedef struct __attribute__ ((__packed__)) SpiceMigrateDataSpiceVmc { + SpiceMigrateDataCharDevice base; +} SpiceMigrateDataSpiceVmc; + static inline int migration_protocol_validate_header(SpiceMigrateDataHeader *header, uint32_t magic, uint32_t version) |