summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYonit Halperin <yhalperi@redhat.com>2012-08-14 15:39:01 +0300
committerYonit Halperin <yhalperi@redhat.com>2012-08-27 09:13:14 +0300
commitc83a608fb464f1fd76024a6abd05ffb700172645 (patch)
treebcd44f89f28dbd2870ede4c1cc0c18ed010655c8
parentc24276d941b1a55a35ab1b1a09b993bae502c659 (diff)
downloadspice-c83a608fb464f1fd76024a6abd05ffb700172645.tar.gz
spice-c83a608fb464f1fd76024a6abd05ffb700172645.tar.xz
spice-c83a608fb464f1fd76024a6abd05ffb700172645.zip
enable seamless migration and set migration protocol version
-rw-r--r--server/main_channel.c1
-rw-r--r--server/migration_protocol.h2
2 files changed, 2 insertions, 1 deletions
diff --git a/server/main_channel.c b/server/main_channel.c
index 22660f53..0fd5ab6f 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 c96b60a0..fa17c7c4 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;