From c83a608fb464f1fd76024a6abd05ffb700172645 Mon Sep 17 00:00:00 2001 From: Yonit Halperin Date: Tue, 14 Aug 2012 15:39:01 +0300 Subject: enable seamless migration and set migration protocol version --- server/main_channel.c | 1 + server/migration_protocol.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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; -- cgit