qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 19/19] migration: add a parser to accept FT migratio


From: Yoshiaki Tamura
Subject: [Qemu-devel] [PATCH 19/19] migration: add a parser to accept FT migration incoming mode.
Date: Fri, 28 Jan 2011 16:21:52 +0900

The option looks like, -incoming <protocol>:<address>:<port>,ft_mode

Signed-off-by: Yoshiaki Tamura <address@hidden>
---
 migration.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

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)
-- 
1.7.1.2




reply via email to

[Prev in Thread] Current Thread [Next in Thread]