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

login
register
mail settings
Submitter Yoshiaki Tamura
Date Jan. 26, 2011, 9:42 a.m.
Message ID <1296034931-10843-20-git-send-email-tamura.yoshiaki@lab.ntt.co.jp>
Download mbox | patch
Permalink /patch/80499/
State New
Headers show

Comments

Yoshiaki Tamura - Jan. 26, 2011, 9:42 a.m.
The option looks like, -incoming <protocol>:<address>:<port>,ft_mode

Signed-off-by: Yoshiaki Tamura <tamura.yoshiaki@lab.ntt.co.jp>
---
 migration.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

Patch

diff --git a/migration.c b/migration.c
index 1752cf4..29d4fb1 100644
--- a/migration.c
+++ b/migration.c
@@ -45,6 +45,12 @@  int qemu_start_incoming_migration(const char *uri)
     const char *p;
     int ret;
 
+    /* check ft_mode option  */
+    p = strstr(uri, "ft_mode");
+    if (p && !strcmp(p, "ft_mode")) {
+        ft_mode = FT_INIT;
+    }
+
     if (strstart(uri, "tcp:", &p))
         ret = tcp_start_incoming_migration(p);
 #if !defined(WIN32)