mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2026-01-09 14:11:47 +00:00
enable seamless migration and set migration protocol version
This commit is contained in:
parent
c24276d941
commit
c83a608fb4
@ -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);
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user