[Spice-devel] [spice PATCH 22/55] migration_protocol: add migration data for spicevmc

Yonit Halperin yhalperi at redhat.com
Wed Aug 15 00:56:02 PDT 2012


---
 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 7a1cb1d..127ab0a 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)
-- 
1.7.7.6



More information about the Spice-devel mailing list