Patchwork [spice-server,11/13] server: turn spice_server_migrate_start into a valid call

login
register
mail settings
Submitter Yonit Halperin
Date Sept. 21, 2011, 3:51 p.m.
Message ID <1316620283-8330-12-git-send-email-yhalperi@redhat.com>
Download mbox | patch
Permalink /patch/115808/
State New
Headers show

Comments

Yonit Halperin - Sept. 21, 2011, 3:51 p.m.
We will add a qemu call to spice_server_migrate_start when migration starts.
For now, it does nothing, but we may need this notification in the future.

Signed-off-by: Yonit Halperin <yhalperi@redhat.com>
---
 server/reds.c |    8 +-------
 1 files changed, 1 insertions(+), 7 deletions(-)

Patch

diff --git a/server/reds.c b/server/reds.c
index 6d2269c..76aa0ed 100644
--- a/server/reds.c
+++ b/server/reds.c
@@ -5143,16 +5143,10 @@  SPICE_GNUC_VISIBLE int spice_server_migrate_info(SpiceServer *s, const char* des
 SPICE_GNUC_VISIBLE int spice_server_migrate_start(SpiceServer *s)
 {
     ASSERT(reds == s);
-
-    if (1) {
-        /* seamless doesn't work, fixing needs protocol change. */
-        return -1;
-    }
-
+    red_printf("");
     if (!reds->mig_spice) {
         return -1;
     }
-    reds_mig_started();
     return 0;
 }