summaryrefslogtreecommitdiffstats
path: root/server/main_channel.h
diff options
context:
space:
mode:
authorYonit Halperin <yhalperi@redhat.com>2012-07-04 16:23:58 +0300
committerYonit Halperin <yhalperi@redhat.com>2012-08-27 09:12:03 +0300
commit43e0897da5dd880fa9c2df5dd34d9de1ab13b862 (patch)
tree515bdfafa3c25310d1f47a8f17afc97dcfcb75f8 /server/main_channel.h
parent35cf65a45e5327966d19cd5db0cb2c91bb828abe (diff)
downloadspice-43e0897da5dd880fa9c2df5dd34d9de1ab13b862.tar.gz
spice-43e0897da5dd880fa9c2df5dd34d9de1ab13b862.tar.xz
spice-43e0897da5dd880fa9c2df5dd34d9de1ab13b862.zip
seamless migration: pre migration phase on the src side
sending SPICE_MSG_MAIN_MIGRATE_BEGIN_SEAMLESS and handling SPICE_MSGC_MAIN_MIGRATE_CONNECTED_SEAMLESS The src side signals the client to establish a connection to the destination. In seamless migration, the client is also used to perform a sort of handshake with the destination, for verifying if seamless migration can be supported. see spice-protocol for more details: commit 3838ad140a046c4ddf42fef58c9727ecfdc09f9f
Diffstat (limited to 'server/main_channel.h')
-rw-r--r--server/main_channel.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/server/main_channel.h b/server/main_channel.h
index b69dcfe9..40d2215a 100644
--- a/server/main_channel.h
+++ b/server/main_channel.h
@@ -98,8 +98,10 @@ void main_channel_migrate_switch(MainChannel *main_chan, RedsMigSpice *mig_targe
/* semi seamless migration */
-/* returns the number of clients that we are waiting for their connection */
-int main_channel_migrate_connect(MainChannel *main_channel, RedsMigSpice *mig_target);
+/* returns the number of clients that we are waiting for their connection.
+ * try_seamless = 'true' when the seamless-migration=on in qemu command line */
+int main_channel_migrate_connect(MainChannel *main_channel, RedsMigSpice *mig_target,
+ int try_seamless);
void main_channel_migrate_cancel_wait(MainChannel *main_chan);
/* returns the number of clients for which SPICE_MSG_MAIN_MIGRATE_END was sent*/
int main_channel_migrate_complete(MainChannel *main_chan, int success);