diff mbox

[19/19] migration: add a parser to accept FT migration incoming mode.

Message ID 1293438337-21377-20-git-send-email-tamura.yoshiaki@lab.ntt.co.jp (mailing list archive)
State New, archived
Headers show

Commit Message

Yoshiaki Tamura Dec. 27, 2010, 8:25 a.m. UTC
None
diff mbox

Patch

diff --git a/migration.c b/migration.c
index a4a39eb..14d7089 100644
--- a/migration.c
+++ b/migration.c
@@ -42,9 +42,16 @@  static MigrationState *current_migration;
 
 int qemu_start_incoming_migration(const char *uri)
 {
-    const char *p;
+    const char *p = uri;
     int ret;
 
+    /* check ft_mode option  */
+    if ((p = strstr(p, "ft_mode"))) {
+        if (!strcmp(p, "ft_mode")) {
+            ft_mode = FT_INIT;
+        }
+    }
+
     if (strstart(uri, "tcp:", &p))
         ret = tcp_start_incoming_migration(p);
 #if !defined(WIN32)