[spice PATCH 55/55] enable seamless migration and set migration protocol version

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 server/main_channel.c       |    1 +
 server/migration_protocol.h |    2 +-
 2 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/server/main_channel.c b/server/main_channel.c
index 22660f5..0fd5ab6 100644
--- a/server/main_channel.c
+++ b/server/main_channel.c
@@ -1184,6 +1184,7 @@ MainChannel* main_channel_init(void)
                                         SPICE_MIGRATE_NEED_FLUSH | SPICE_MIGRATE_NEED_DATA_TRANSFER);
     spice_assert(channel);
     red_channel_set_cap(channel, SPICE_MAIN_CAP_SEMI_SEAMLESS_MIGRATE);
+    red_channel_set_cap(channel, SPICE_MAIN_CAP_SEAMLESS_MIGRATE);
 
     client_cbs.migrate = main_channel_client_migrate;
     red_channel_register_client_cbs(channel, &client_cbs);
diff --git a/server/migration_protocol.h b/server/migration_protocol.h
index c96b60a..fa17c7c 100644
--- a/server/migration_protocol.h
+++ b/server/migration_protocol.h
@@ -27,7 +27,7 @@
 
 /* increase the version when the version of any
  * of the migration data messages is increased */
-#define SPICE_MIGRATION_PROTOCOL_VERSION ~0
+#define SPICE_MIGRATION_PROTOCOL_VERSION 1
 
 typedef struct __attribute__ ((__packed__)) SpiceMigrateDataHeader {
     uint32_t magic;
-- 
1.7.7.6

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/spice-devel


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]