diff options
author | Yonit Halperin <yhalperi@redhat.com> | 2010-03-17 18:43:41 +0200 |
---|---|---|
committer | Uri Lublin <uril@redhat.com> | 2010-03-23 14:09:30 +0200 |
commit | 3f757b846c829d1f5d75eeedb2c34d3ab34d5a50 (patch) | |
tree | 0562d1c7a7df5ccc60ed80d48beacdd459867a22 /common | |
parent | 6108a6ce5f74c1d466b6ab3e453f2ecbd2dd5a9d (diff) | |
download | spice-client-0.4.2-4.el6.tar.gz spice-client-0.4.2-4.el6.tar.xz spice-client-0.4.2-4.el6.zip |
new migration process #576029 #576031 #576033spice-server-0.4.2-5.el6spice-common-0.4.2-4.el6spice-client-0.4.2-4.el6
- the server acquires the target info from a dedicated Qemu command
- when migration ends, the client receieves a new message RED_MIGRATE_SWITCH_HOST
- client then disconnects from the source and connects to the target. The connection
to the target is entirely new.
Diffstat (limited to 'common')
-rw-r--r-- | common/red.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/common/red.h b/common/red.h index cead0667..44cef460 100644 --- a/common/red.h +++ b/common/red.h @@ -46,7 +46,7 @@ #define RED_MAGIC (*(uint32_t*)"REDQ") #define RED_VERSION_MAJOR 1 -#define RED_VERSION_MINOR 1 +#define RED_VERSION_MINOR 2 // Encryption & Ticketing Parameters #define RED_MAX_PASSWORD_LENGTH 60 @@ -166,6 +166,8 @@ enum { RED_AGENT_DATA, RED_AGENT_TOKEN, + RED_MIGRATE_SWITCH_HOST, + RED_MESSAGES_END, }; @@ -231,6 +233,15 @@ typedef struct ATTR_PACKED RedMigrationBegin { uint32_t pub_key_size; } RedMigrationBegin; +typedef struct ATTR_PACKED RedMigrationSwitchHost { + uint16_t port; + uint16_t sport; + uint32_t host_offset; + uint32_t host_size; + uint32_t cert_subject_offset; + uint32_t cert_subject_size; +} RedMigrationSwitchHost; + enum { RED_MIGRATE_NEED_FLUSH = (1 << 0), RED_MIGRATE_NEED_DATA_TRANSFER = (1 << 1), |