enable seamless migration and set migration protocol version

This commit is contained in:
Yonit Halperin 2012-08-14 15:39:01 +03:00
parent c24276d941
commit c83a608fb4
2 changed files with 2 additions and 1 deletions

View File

@ -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);

View File

@ -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;