[PATCH 18/19] Introduce -k option to enable FT migration mode (Kemari).

2011-02-08 Thread Yoshiaki Tamura
When -k option is set to migrate command, it will turn on ft_mode to
start FT migration mode (Kemari).

Signed-off-by: Yoshiaki Tamura tamura.yoshi...@lab.ntt.co.jp
---
 hmp-commands.hx |7 ---
 migration.c |4 
 qmp-commands.hx |7 ---
 3 files changed, 12 insertions(+), 6 deletions(-)

diff --git a/hmp-commands.hx b/hmp-commands.hx
index 38e1eb7..3560f32 100644
--- a/hmp-commands.hx
+++ b/hmp-commands.hx
@@ -754,13 +754,14 @@ ETEXI
 
 {
 .name   = migrate,
-.args_type  = detach:-d,blk:-b,inc:-i,uri:s,
-.params = [-d] [-b] [-i] uri,
+.args_type  = detach:-d,blk:-b,inc:-i,ft:-k,uri:s,
+.params = [-d] [-b] [-i] [-k] uri,
 .help   = migrate to URI (using -d to not wait for completion)
  \n\t\t\t -b for migration without shared storage with
   full copy of disk\n\t\t\t -i for migration without 
  shared storage with incremental copy of disk 
- (base image shared between src and destination),
+ (base image shared between src and destination)
+ \n\t\t\t -k for Fault Tolerance mode (Kemari protocol),
 .user_print = monitor_user_noop,   
.mhandler.cmd_new = do_migrate,
 },
diff --git a/migration.c b/migration.c
index 7837c55..9d2abff 100644
--- a/migration.c
+++ b/migration.c
@@ -99,6 +99,10 @@ int do_migrate(Monitor *mon, const QDict *qdict, QObject 
**ret_data)
 return -1;
 }
 
+if (qdict_get_try_bool(qdict, ft, 0)) {
+ft_mode = FT_INIT;
+}
+
 if (strstart(uri, tcp:, p)) {
 s = tcp_start_outgoing_migration(mon, p, max_throttle, detach,
  blk, inc);
diff --git a/qmp-commands.hx b/qmp-commands.hx
index df40a3d..f81a4a2 100644
--- a/qmp-commands.hx
+++ b/qmp-commands.hx
@@ -431,13 +431,14 @@ EQMP
 
 {
 .name   = migrate,
-.args_type  = detach:-d,blk:-b,inc:-i,uri:s,
-.params = [-d] [-b] [-i] uri,
+.args_type  = detach:-d,blk:-b,inc:-i,ft:-k,uri:s,
+.params = [-d] [-b] [-i] [-k] uri,
 .help   = migrate to URI (using -d to not wait for completion)
  \n\t\t\t -b for migration without shared storage with
   full copy of disk\n\t\t\t -i for migration without 
  shared storage with incremental copy of disk 
- (base image shared between src and destination),
+ (base image shared between src and destination)
+ \n\t\t\t -k for Fault Tolerance mode (Kemari protocol),
 .user_print = monitor_user_noop,   
.mhandler.cmd_new = do_migrate,
 },
-- 
1.7.1.2

--
To unsubscribe from this list: send the line unsubscribe kvm in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH 18/19] Introduce -k option to enable FT migration mode (Kemari).

2011-02-08 Thread Paolo Bonzini

On 02/08/2011 12:01 PM, Yoshiaki Tamura wrote:

When -k option is set to migrate command, it will turn on ft_mode to
start FT migration mode (Kemari).


This could also use a kemari: prefix.

Paolo
--
To unsubscribe from this list: send the line unsubscribe kvm in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH 18/19] Introduce -k option to enable FT migration mode (Kemari).

2011-02-08 Thread Yoshiaki Tamura
2011/2/8 Paolo Bonzini pbonz...@redhat.com:
 On 02/08/2011 12:01 PM, Yoshiaki Tamura wrote:

 When -k option is set to migrate command, it will turn on ft_mode to
 start FT migration mode (Kemari).

 This could also use a kemari: prefix.

Sorry, missed that comment.  BTW, the help message would be like

put kemari: in front of URI to enable Fault Tolerance mode (Kemari protocol)

If there are comments on this, I would like to take them.

Thanks,

Yoshi


 Paolo
 --
 To unsubscribe from this list: send the line unsubscribe kvm in
 the body of a message to majord...@vger.kernel.org
 More majordomo info at  http://vger.kernel.org/majordomo-info.html

--
To unsubscribe from this list: send the line unsubscribe kvm in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH 18/19] Introduce -k option to enable FT migration mode (Kemari).

2011-01-27 Thread Yoshiaki Tamura
When -k option is set to migrate command, it will turn on ft_mode to
start FT migration mode (Kemari).

Signed-off-by: Yoshiaki Tamura tamura.yoshi...@lab.ntt.co.jp
---
 hmp-commands.hx |7 ---
 migration.c |4 
 qmp-commands.hx |7 ---
 3 files changed, 12 insertions(+), 6 deletions(-)

diff --git a/hmp-commands.hx b/hmp-commands.hx
index 1cea572..b7f8f2f 100644
--- a/hmp-commands.hx
+++ b/hmp-commands.hx
@@ -735,13 +735,14 @@ ETEXI
 
 {
 .name   = migrate,
-.args_type  = detach:-d,blk:-b,inc:-i,uri:s,
-.params = [-d] [-b] [-i] uri,
+.args_type  = detach:-d,blk:-b,inc:-i,ft:-k,uri:s,
+.params = [-d] [-b] [-i] [-k] uri,
 .help   = migrate to URI (using -d to not wait for completion)
  \n\t\t\t -b for migration without shared storage with
   full copy of disk\n\t\t\t -i for migration without 
  shared storage with incremental copy of disk 
- (base image shared between src and destination),
+ (base image shared between src and destination)
+ \n\t\t\t -k for Fault Tolerance mode (Kemari protocol),
 .user_print = monitor_user_noop,   
.mhandler.cmd_new = do_migrate,
 },
diff --git a/migration.c b/migration.c
index aa30ecd..1752cf4 100644
--- a/migration.c
+++ b/migration.c
@@ -96,6 +96,10 @@ int do_migrate(Monitor *mon, const QDict *qdict, QObject 
**ret_data)
 return -1;
 }
 
+if (qdict_get_try_bool(qdict, ft, 0)) {
+ft_mode = FT_INIT;
+}
+
 if (strstart(uri, tcp:, p)) {
 s = tcp_start_outgoing_migration(mon, p, max_throttle, detach,
  blk, inc);
diff --git a/qmp-commands.hx b/qmp-commands.hx
index 56c4d8b..1521931 100644
--- a/qmp-commands.hx
+++ b/qmp-commands.hx
@@ -431,13 +431,14 @@ EQMP
 
 {
 .name   = migrate,
-.args_type  = detach:-d,blk:-b,inc:-i,uri:s,
-.params = [-d] [-b] [-i] uri,
+.args_type  = detach:-d,blk:-b,inc:-i,ft:-k,uri:s,
+.params = [-d] [-b] [-i] [-k] uri,
 .help   = migrate to URI (using -d to not wait for completion)
  \n\t\t\t -b for migration without shared storage with
   full copy of disk\n\t\t\t -i for migration without 
  shared storage with incremental copy of disk 
- (base image shared between src and destination),
+ (base image shared between src and destination)
+ \n\t\t\t -k for Fault Tolerance mode (Kemari protocol),
 .user_print = monitor_user_noop,   
.mhandler.cmd_new = do_migrate,
 },
-- 
1.7.1.2

--
To unsubscribe from this list: send the line unsubscribe kvm in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH 18/19] Introduce -k option to enable FT migration mode (Kemari).

2011-01-18 Thread Yoshiaki Tamura
When -k option is set to migrate command, it will turn on ft_mode to
start FT migration mode (Kemari).

Signed-off-by: Yoshiaki Tamura tamura.yoshi...@lab.ntt.co.jp
---
 hmp-commands.hx |7 ---
 migration.c |4 
 qmp-commands.hx |7 ---
 3 files changed, 12 insertions(+), 6 deletions(-)

diff --git a/hmp-commands.hx b/hmp-commands.hx
index 1cea572..b7f8f2f 100644
--- a/hmp-commands.hx
+++ b/hmp-commands.hx
@@ -735,13 +735,14 @@ ETEXI
 
 {
 .name   = migrate,
-.args_type  = detach:-d,blk:-b,inc:-i,uri:s,
-.params = [-d] [-b] [-i] uri,
+.args_type  = detach:-d,blk:-b,inc:-i,ft:-k,uri:s,
+.params = [-d] [-b] [-i] [-k] uri,
 .help   = migrate to URI (using -d to not wait for completion)
  \n\t\t\t -b for migration without shared storage with
   full copy of disk\n\t\t\t -i for migration without 
  shared storage with incremental copy of disk 
- (base image shared between src and destination),
+ (base image shared between src and destination)
+ \n\t\t\t -k for Fault Tolerance mode (Kemari protocol),
 .user_print = monitor_user_noop,   
.mhandler.cmd_new = do_migrate,
 },
diff --git a/migration.c b/migration.c
index fb73b2d..11bbdf8 100644
--- a/migration.c
+++ b/migration.c
@@ -92,6 +92,10 @@ int do_migrate(Monitor *mon, const QDict *qdict, QObject 
**ret_data)
 return -1;
 }
 
+if (qdict_get_try_bool(qdict, ft, 0)) {
+ft_mode = FT_INIT;
+}
+
 if (strstart(uri, tcp:, p)) {
 s = tcp_start_outgoing_migration(mon, p, max_throttle, detach,
  blk, inc);
diff --git a/qmp-commands.hx b/qmp-commands.hx
index 56c4d8b..1521931 100644
--- a/qmp-commands.hx
+++ b/qmp-commands.hx
@@ -431,13 +431,14 @@ EQMP
 
 {
 .name   = migrate,
-.args_type  = detach:-d,blk:-b,inc:-i,uri:s,
-.params = [-d] [-b] [-i] uri,
+.args_type  = detach:-d,blk:-b,inc:-i,ft:-k,uri:s,
+.params = [-d] [-b] [-i] [-k] uri,
 .help   = migrate to URI (using -d to not wait for completion)
  \n\t\t\t -b for migration without shared storage with
   full copy of disk\n\t\t\t -i for migration without 
  shared storage with incremental copy of disk 
- (base image shared between src and destination),
+ (base image shared between src and destination)
+ \n\t\t\t -k for Fault Tolerance mode (Kemari protocol),
 .user_print = monitor_user_noop,   
.mhandler.cmd_new = do_migrate,
 },
-- 
1.7.1.2

--
To unsubscribe from this list: send the line unsubscribe kvm in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH 18/19] Introduce -k option to enable FT migration mode (Kemari).

2011-01-14 Thread Yoshiaki Tamura
When -k option is set to migrate command, it will turn on ft_mode to
start FT migration mode (Kemari).

Signed-off-by: Yoshiaki Tamura tamura.yoshi...@lab.ntt.co.jp
---
 hmp-commands.hx |7 ---
 migration.c |4 
 qmp-commands.hx |7 ---
 3 files changed, 12 insertions(+), 6 deletions(-)

diff --git a/hmp-commands.hx b/hmp-commands.hx
index 1cea572..b7f8f2f 100644
--- a/hmp-commands.hx
+++ b/hmp-commands.hx
@@ -735,13 +735,14 @@ ETEXI
 
 {
 .name   = migrate,
-.args_type  = detach:-d,blk:-b,inc:-i,uri:s,
-.params = [-d] [-b] [-i] uri,
+.args_type  = detach:-d,blk:-b,inc:-i,ft:-k,uri:s,
+.params = [-d] [-b] [-i] [-k] uri,
 .help   = migrate to URI (using -d to not wait for completion)
  \n\t\t\t -b for migration without shared storage with
   full copy of disk\n\t\t\t -i for migration without 
  shared storage with incremental copy of disk 
- (base image shared between src and destination),
+ (base image shared between src and destination)
+ \n\t\t\t -k for Fault Tolerance mode (Kemari protocol),
 .user_print = monitor_user_noop,   
.mhandler.cmd_new = do_migrate,
 },
diff --git a/migration.c b/migration.c
index fb73b2d..11bbdf8 100644
--- a/migration.c
+++ b/migration.c
@@ -92,6 +92,10 @@ int do_migrate(Monitor *mon, const QDict *qdict, QObject 
**ret_data)
 return -1;
 }
 
+if (qdict_get_try_bool(qdict, ft, 0)) {
+ft_mode = FT_INIT;
+}
+
 if (strstart(uri, tcp:, p)) {
 s = tcp_start_outgoing_migration(mon, p, max_throttle, detach,
  blk, inc);
diff --git a/qmp-commands.hx b/qmp-commands.hx
index 56c4d8b..1521931 100644
--- a/qmp-commands.hx
+++ b/qmp-commands.hx
@@ -431,13 +431,14 @@ EQMP
 
 {
 .name   = migrate,
-.args_type  = detach:-d,blk:-b,inc:-i,uri:s,
-.params = [-d] [-b] [-i] uri,
+.args_type  = detach:-d,blk:-b,inc:-i,ft:-k,uri:s,
+.params = [-d] [-b] [-i] [-k] uri,
 .help   = migrate to URI (using -d to not wait for completion)
  \n\t\t\t -b for migration without shared storage with
   full copy of disk\n\t\t\t -i for migration without 
  shared storage with incremental copy of disk 
- (base image shared between src and destination),
+ (base image shared between src and destination)
+ \n\t\t\t -k for Fault Tolerance mode (Kemari protocol),
 .user_print = monitor_user_noop,   
.mhandler.cmd_new = do_migrate,
 },
-- 
1.7.1.2

--
To unsubscribe from this list: send the line unsubscribe kvm in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH 18/19] Introduce -k option to enable FT migration mode (Kemari).

2011-01-13 Thread Yoshiaki Tamura
When -k option is set to migrate command, it will turn on ft_mode to
start FT migration mode (Kemari).

Signed-off-by: Yoshiaki Tamura tamura.yoshi...@lab.ntt.co.jp
---
 hmp-commands.hx |7 ---
 migration.c |3 +++
 qmp-commands.hx |7 ---
 3 files changed, 11 insertions(+), 6 deletions(-)

diff --git a/hmp-commands.hx b/hmp-commands.hx
index 1cea572..b7f8f2f 100644
--- a/hmp-commands.hx
+++ b/hmp-commands.hx
@@ -735,13 +735,14 @@ ETEXI
 
 {
 .name   = migrate,
-.args_type  = detach:-d,blk:-b,inc:-i,uri:s,
-.params = [-d] [-b] [-i] uri,
+.args_type  = detach:-d,blk:-b,inc:-i,ft:-k,uri:s,
+.params = [-d] [-b] [-i] [-k] uri,
 .help   = migrate to URI (using -d to not wait for completion)
  \n\t\t\t -b for migration without shared storage with
   full copy of disk\n\t\t\t -i for migration without 
  shared storage with incremental copy of disk 
- (base image shared between src and destination),
+ (base image shared between src and destination)
+ \n\t\t\t -k for Fault Tolerance mode (Kemari protocol),
 .user_print = monitor_user_noop,   
.mhandler.cmd_new = do_migrate,
 },
diff --git a/migration.c b/migration.c
index 557349b..d4922ce 100644
--- a/migration.c
+++ b/migration.c
@@ -92,6 +92,9 @@ int do_migrate(Monitor *mon, const QDict *qdict, QObject 
**ret_data)
 return -1;
 }
 
+if (qdict_get_try_bool(qdict, ft, 0))
+ft_mode = FT_INIT;
+
 if (strstart(uri, tcp:, p)) {
 s = tcp_start_outgoing_migration(mon, p, max_throttle, detach,
  blk, inc);
diff --git a/qmp-commands.hx b/qmp-commands.hx
index 56c4d8b..1521931 100644
--- a/qmp-commands.hx
+++ b/qmp-commands.hx
@@ -431,13 +431,14 @@ EQMP
 
 {
 .name   = migrate,
-.args_type  = detach:-d,blk:-b,inc:-i,uri:s,
-.params = [-d] [-b] [-i] uri,
+.args_type  = detach:-d,blk:-b,inc:-i,ft:-k,uri:s,
+.params = [-d] [-b] [-i] [-k] uri,
 .help   = migrate to URI (using -d to not wait for completion)
  \n\t\t\t -b for migration without shared storage with
   full copy of disk\n\t\t\t -i for migration without 
  shared storage with incremental copy of disk 
- (base image shared between src and destination),
+ (base image shared between src and destination)
+ \n\t\t\t -k for Fault Tolerance mode (Kemari protocol),
 .user_print = monitor_user_noop,   
.mhandler.cmd_new = do_migrate,
 },
-- 
1.7.1.2

--
To unsubscribe from this list: send the line unsubscribe kvm in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [Qemu-devel] [PATCH 18/19] Introduce -k option to enable FT migration mode (Kemari).

2011-01-13 Thread Blue Swirl
On Thu, Jan 13, 2011 at 5:15 PM, Yoshiaki Tamura
tamura.yoshi...@lab.ntt.co.jp wrote:
 When -k option is set to migrate command, it will turn on ft_mode to
 start FT migration mode (Kemari).

 Signed-off-by: Yoshiaki Tamura tamura.yoshi...@lab.ntt.co.jp
 ---
  hmp-commands.hx |    7 ---
  migration.c     |    3 +++
  qmp-commands.hx |    7 ---
  3 files changed, 11 insertions(+), 6 deletions(-)

 diff --git a/hmp-commands.hx b/hmp-commands.hx
 index 1cea572..b7f8f2f 100644
 --- a/hmp-commands.hx
 +++ b/hmp-commands.hx
 @@ -735,13 +735,14 @@ ETEXI

     {
         .name       = migrate,
 -        .args_type  = detach:-d,blk:-b,inc:-i,uri:s,
 -        .params     = [-d] [-b] [-i] uri,
 +        .args_type  = detach:-d,blk:-b,inc:-i,ft:-k,uri:s,
 +        .params     = [-d] [-b] [-i] [-k] uri,
         .help       = migrate to URI (using -d to not wait for completion)
                      \n\t\t\t -b for migration without shared storage with
                       full copy of disk\n\t\t\t -i for migration without 
                      shared storage with incremental copy of disk 
 -                     (base image shared between src and destination),
 +                     (base image shared between src and destination)
 +                     \n\t\t\t -k for Fault Tolerance mode (Kemari 
 protocol),
         .user_print = monitor_user_noop,
        .mhandler.cmd_new = do_migrate,
     },
 diff --git a/migration.c b/migration.c
 index 557349b..d4922ce 100644
 --- a/migration.c
 +++ b/migration.c
 @@ -92,6 +92,9 @@ int do_migrate(Monitor *mon, const QDict *qdict, QObject 
 **ret_data)
         return -1;
     }

 +    if (qdict_get_try_bool(qdict, ft, 0))
 +        ft_mode = FT_INIT;

Missing braces.
--
To unsubscribe from this list: send the line unsubscribe kvm in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH 18/19] Introduce -k option to enable FT migration mode (Kemari).

2011-01-11 Thread Yoshiaki Tamura
When -k option is set to migrate command, it will turn on ft_mode to
start FT migration mode (Kemari).

Signed-off-by: Yoshiaki Tamura tamura.yoshi...@lab.ntt.co.jp
---
 hmp-commands.hx |7 ---
 migration.c |3 +++
 qmp-commands.hx |7 ---
 3 files changed, 11 insertions(+), 6 deletions(-)

diff --git a/hmp-commands.hx b/hmp-commands.hx
index 1cea572..b7f8f2f 100644
--- a/hmp-commands.hx
+++ b/hmp-commands.hx
@@ -735,13 +735,14 @@ ETEXI
 
 {
 .name   = migrate,
-.args_type  = detach:-d,blk:-b,inc:-i,uri:s,
-.params = [-d] [-b] [-i] uri,
+.args_type  = detach:-d,blk:-b,inc:-i,ft:-k,uri:s,
+.params = [-d] [-b] [-i] [-k] uri,
 .help   = migrate to URI (using -d to not wait for completion)
  \n\t\t\t -b for migration without shared storage with
   full copy of disk\n\t\t\t -i for migration without 
  shared storage with incremental copy of disk 
- (base image shared between src and destination),
+ (base image shared between src and destination)
+ \n\t\t\t -k for Fault Tolerance mode (Kemari protocol),
 .user_print = monitor_user_noop,   
.mhandler.cmd_new = do_migrate,
 },
diff --git a/migration.c b/migration.c
index 03c997e..6e22d2a 100644
--- a/migration.c
+++ b/migration.c
@@ -92,6 +92,9 @@ int do_migrate(Monitor *mon, const QDict *qdict, QObject 
**ret_data)
 return -1;
 }
 
+if (qdict_get_try_bool(qdict, ft, 0))
+ft_mode = FT_INIT;
+
 if (strstart(uri, tcp:, p)) {
 s = tcp_start_outgoing_migration(mon, p, max_throttle, detach,
  blk, inc);
diff --git a/qmp-commands.hx b/qmp-commands.hx
index 56c4d8b..1521931 100644
--- a/qmp-commands.hx
+++ b/qmp-commands.hx
@@ -431,13 +431,14 @@ EQMP
 
 {
 .name   = migrate,
-.args_type  = detach:-d,blk:-b,inc:-i,uri:s,
-.params = [-d] [-b] [-i] uri,
+.args_type  = detach:-d,blk:-b,inc:-i,ft:-k,uri:s,
+.params = [-d] [-b] [-i] [-k] uri,
 .help   = migrate to URI (using -d to not wait for completion)
  \n\t\t\t -b for migration without shared storage with
   full copy of disk\n\t\t\t -i for migration without 
  shared storage with incremental copy of disk 
- (base image shared between src and destination),
+ (base image shared between src and destination)
+ \n\t\t\t -k for Fault Tolerance mode (Kemari protocol),
 .user_print = monitor_user_noop,   
.mhandler.cmd_new = do_migrate,
 },
-- 
1.7.1.2

--
To unsubscribe from this list: send the line unsubscribe kvm in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH 18/19] Introduce -k option to enable FT migration mode (Kemari).

2010-12-27 Thread Yoshiaki Tamura
When -k option is set to migrate command, it will turn on ft_mode to
start FT migration mode (Kemari).

Signed-off-by: Yoshiaki Tamura tamura.yoshi...@lab.ntt.co.jp
---
 hmp-commands.hx |7 ---
 migration.c |3 +++
 qmp-commands.hx |7 ---
 3 files changed, 11 insertions(+), 6 deletions(-)

diff --git a/hmp-commands.hx b/hmp-commands.hx
index 4befbe2..0071409 100644
--- a/hmp-commands.hx
+++ b/hmp-commands.hx
@@ -735,13 +735,14 @@ ETEXI
 
 {
 .name   = migrate,
-.args_type  = detach:-d,blk:-b,inc:-i,uri:s,
-.params = [-d] [-b] [-i] uri,
+.args_type  = detach:-d,blk:-b,inc:-i,ft:-k,uri:s,
+.params = [-d] [-b] [-i] [-k] uri,
 .help   = migrate to URI (using -d to not wait for completion)
  \n\t\t\t -b for migration without shared storage with
   full copy of disk\n\t\t\t -i for migration without 
  shared storage with incremental copy of disk 
- (base image shared between src and destination),
+ (base image shared between src and destination)
+ \n\t\t\t -k for FT migration mode (Kemari),
 .user_print = monitor_user_noop,   
.mhandler.cmd_new = do_migrate,
 },
diff --git a/migration.c b/migration.c
index 0db0b6d..a4a39eb 100644
--- a/migration.c
+++ b/migration.c
@@ -92,6 +92,9 @@ int do_migrate(Monitor *mon, const QDict *qdict, QObject 
**ret_data)
 return -1;
 }
 
+if (qdict_get_try_bool(qdict, ft, 0))
+ft_mode = FT_INIT;
+
 if (strstart(uri, tcp:, p)) {
 s = tcp_start_outgoing_migration(mon, p, max_throttle, detach,
  blk, inc);
diff --git a/qmp-commands.hx b/qmp-commands.hx
index 3486223..b28bf70 100644
--- a/qmp-commands.hx
+++ b/qmp-commands.hx
@@ -431,13 +431,14 @@ EQMP
 
 {
 .name   = migrate,
-.args_type  = detach:-d,blk:-b,inc:-i,uri:s,
-.params = [-d] [-b] [-i] uri,
+.args_type  = detach:-d,blk:-b,inc:-i,ft:-k,uri:s,
+.params = [-d] [-b] [-i] [-k] uri,
 .help   = migrate to URI (using -d to not wait for completion)
  \n\t\t\t -b for migration without shared storage with
   full copy of disk\n\t\t\t -i for migration without 
  shared storage with incremental copy of disk 
- (base image shared between src and destination),
+ (base image shared between src and destination)
+ \n\t\t\t -k for FT migration mode (Kemari),
 .user_print = monitor_user_noop,   
.mhandler.cmd_new = do_migrate,
 },
-- 
1.7.1.2

--
To unsubscribe from this list: send the line unsubscribe kvm in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH 18/19] Introduce -k option to enable FT migration mode (Kemari).

2010-12-27 Thread Michael S. Tsirkin
On Mon, Dec 27, 2010 at 05:25:36PM +0900, Yoshiaki Tamura wrote:
 When -k option is set to migrate command, it will turn on ft_mode to
 start FT migration mode (Kemari).
 
 Signed-off-by: Yoshiaki Tamura tamura.yoshi...@lab.ntt.co.jp
 ---
  hmp-commands.hx |7 ---
  migration.c |3 +++
  qmp-commands.hx |7 ---
  3 files changed, 11 insertions(+), 6 deletions(-)
 
 diff --git a/hmp-commands.hx b/hmp-commands.hx
 index 4befbe2..0071409 100644
 --- a/hmp-commands.hx
 +++ b/hmp-commands.hx
 @@ -735,13 +735,14 @@ ETEXI
  
  {
  .name   = migrate,
 -.args_type  = detach:-d,blk:-b,inc:-i,uri:s,
 -.params = [-d] [-b] [-i] uri,
 +.args_type  = detach:-d,blk:-b,inc:-i,ft:-k,uri:s,
 +.params = [-d] [-b] [-i] [-k] uri,
  .help   = migrate to URI (using -d to not wait for completion)
 \n\t\t\t -b for migration without shared storage with
  full copy of disk\n\t\t\t -i for migration without 
 shared storage with incremental copy of disk 
 -   (base image shared between src and destination),
 +   (base image shared between src and destination)
 +   \n\t\t\t -k for FT migration mode (Kemari),

FT - Fault tolerance?
IMO it's preferrable to avoid abbreviations in the documentation.

Not sure whether we need to mention the codename here: is it likely to
help the users?

  .user_print = monitor_user_noop, 
   .mhandler.cmd_new = do_migrate,
  },
 diff --git a/migration.c b/migration.c
 index 0db0b6d..a4a39eb 100644
 --- a/migration.c
 +++ b/migration.c
 @@ -92,6 +92,9 @@ int do_migrate(Monitor *mon, const QDict *qdict, QObject 
 **ret_data)
  return -1;
  }
  
 +if (qdict_get_try_bool(qdict, ft, 0))
 +ft_mode = FT_INIT;
 +
  if (strstart(uri, tcp:, p)) {
  s = tcp_start_outgoing_migration(mon, p, max_throttle, detach,
   blk, inc);
 diff --git a/qmp-commands.hx b/qmp-commands.hx
 index 3486223..b28bf70 100644
 --- a/qmp-commands.hx
 +++ b/qmp-commands.hx
 @@ -431,13 +431,14 @@ EQMP
  
  {
  .name   = migrate,
 -.args_type  = detach:-d,blk:-b,inc:-i,uri:s,
 -.params = [-d] [-b] [-i] uri,
 +.args_type  = detach:-d,blk:-b,inc:-i,ft:-k,uri:s,
 +.params = [-d] [-b] [-i] [-k] uri,
  .help   = migrate to URI (using -d to not wait for completion)
 \n\t\t\t -b for migration without shared storage with
  full copy of disk\n\t\t\t -i for migration without 
 shared storage with incremental copy of disk 
 -   (base image shared between src and destination),
 +   (base image shared between src and destination)
 +   \n\t\t\t -k for FT migration mode (Kemari),
  .user_print = monitor_user_noop, 
   .mhandler.cmd_new = do_migrate,
  },
 -- 
 1.7.1.2
--
To unsubscribe from this list: send the line unsubscribe kvm in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH 18/19] Introduce -k option to enable FT migration mode (Kemari).

2010-12-27 Thread Yoshiaki Tamura
2010/12/27 Michael S. Tsirkin m...@redhat.com:
 On Mon, Dec 27, 2010 at 05:25:36PM +0900, Yoshiaki Tamura wrote:
 When -k option is set to migrate command, it will turn on ft_mode to
 start FT migration mode (Kemari).

 Signed-off-by: Yoshiaki Tamura tamura.yoshi...@lab.ntt.co.jp
 ---
  hmp-commands.hx |    7 ---
  migration.c     |    3 +++
  qmp-commands.hx |    7 ---
  3 files changed, 11 insertions(+), 6 deletions(-)

 diff --git a/hmp-commands.hx b/hmp-commands.hx
 index 4befbe2..0071409 100644
 --- a/hmp-commands.hx
 +++ b/hmp-commands.hx
 @@ -735,13 +735,14 @@ ETEXI

      {
          .name       = migrate,
 -        .args_type  = detach:-d,blk:-b,inc:-i,uri:s,
 -        .params     = [-d] [-b] [-i] uri,
 +        .args_type  = detach:-d,blk:-b,inc:-i,ft:-k,uri:s,
 +        .params     = [-d] [-b] [-i] [-k] uri,
          .help       = migrate to URI (using -d to not wait for completion)
                     \n\t\t\t -b for migration without shared storage with
                      full copy of disk\n\t\t\t -i for migration without 
                     shared storage with incremental copy of disk 
 -                   (base image shared between src and destination),
 +                   (base image shared between src and destination)
 +                   \n\t\t\t -k for FT migration mode (Kemari),

 FT - Fault tolerance?
 IMO it's preferrable to avoid abbreviations in the documentation.

Yep.  It's fine for me to avoid abbreviations.

 Not sure whether we need to mention the codename here: is it likely to
 help the users?

Ah:-)  Just didn't know what the official name should be, and
placed Kemari for convenience.  Any ideas or preference here?

Yoshi


          .user_print = monitor_user_noop,
       .mhandler.cmd_new = do_migrate,
      },
 diff --git a/migration.c b/migration.c
 index 0db0b6d..a4a39eb 100644
 --- a/migration.c
 +++ b/migration.c
 @@ -92,6 +92,9 @@ int do_migrate(Monitor *mon, const QDict *qdict, QObject 
 **ret_data)
          return -1;
      }

 +    if (qdict_get_try_bool(qdict, ft, 0))
 +        ft_mode = FT_INIT;
 +
      if (strstart(uri, tcp:, p)) {
          s = tcp_start_outgoing_migration(mon, p, max_throttle, detach,
                                           blk, inc);
 diff --git a/qmp-commands.hx b/qmp-commands.hx
 index 3486223..b28bf70 100644
 --- a/qmp-commands.hx
 +++ b/qmp-commands.hx
 @@ -431,13 +431,14 @@ EQMP

      {
          .name       = migrate,
 -        .args_type  = detach:-d,blk:-b,inc:-i,uri:s,
 -        .params     = [-d] [-b] [-i] uri,
 +        .args_type  = detach:-d,blk:-b,inc:-i,ft:-k,uri:s,
 +        .params     = [-d] [-b] [-i] [-k] uri,
          .help       = migrate to URI (using -d to not wait for completion)
                     \n\t\t\t -b for migration without shared storage with
                      full copy of disk\n\t\t\t -i for migration without 
                     shared storage with incremental copy of disk 
 -                   (base image shared between src and destination),
 +                   (base image shared between src and destination)
 +                   \n\t\t\t -k for FT migration mode (Kemari),
          .user_print = monitor_user_noop,
       .mhandler.cmd_new = do_migrate,
      },
 --
 1.7.1.2
 --
 To unsubscribe from this list: send the line unsubscribe kvm in
 the body of a message to majord...@vger.kernel.org
 More majordomo info at  http://vger.kernel.org/majordomo-info.html

--
To unsubscribe from this list: send the line unsubscribe kvm in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH 18/19] Introduce -k option to enable FT migration mode (Kemari).

2010-12-27 Thread Michael S. Tsirkin
On Mon, Dec 27, 2010 at 06:11:27PM +0900, Yoshiaki Tamura wrote:
 2010/12/27 Michael S. Tsirkin m...@redhat.com:
  On Mon, Dec 27, 2010 at 05:25:36PM +0900, Yoshiaki Tamura wrote:
  When -k option is set to migrate command, it will turn on ft_mode to
  start FT migration mode (Kemari).
 
  Signed-off-by: Yoshiaki Tamura tamura.yoshi...@lab.ntt.co.jp
  ---
   hmp-commands.hx |    7 ---
   migration.c     |    3 +++
   qmp-commands.hx |    7 ---
   3 files changed, 11 insertions(+), 6 deletions(-)
 
  diff --git a/hmp-commands.hx b/hmp-commands.hx
  index 4befbe2..0071409 100644
  --- a/hmp-commands.hx
  +++ b/hmp-commands.hx
  @@ -735,13 +735,14 @@ ETEXI
 
       {
           .name       = migrate,
  -        .args_type  = detach:-d,blk:-b,inc:-i,uri:s,
  -        .params     = [-d] [-b] [-i] uri,
  +        .args_type  = detach:-d,blk:-b,inc:-i,ft:-k,uri:s,
  +        .params     = [-d] [-b] [-i] [-k] uri,
           .help       = migrate to URI (using -d to not wait for 
  completion)
                      \n\t\t\t -b for migration without shared storage with
                       full copy of disk\n\t\t\t -i for migration without 
                      shared storage with incremental copy of disk 
  -                   (base image shared between src and destination),
  +                   (base image shared between src and destination)
  +                   \n\t\t\t -k for FT migration mode (Kemari),
 
  FT - Fault tolerance?
  IMO it's preferrable to avoid abbreviations in the documentation.
 
 Yep.  It's fine for me to avoid abbreviations.
 
  Not sure whether we need to mention the codename here: is it likely to
  help the users?
 
 Ah:-)  Just didn't know what the official name should be, and
 placed Kemari for convenience.  Any ideas or preference here?
 
 Yoshi

Do we need a name? Fault tolerance mode insufficient?

 
           .user_print = monitor_user_noop,
        .mhandler.cmd_new = do_migrate,
       },
  diff --git a/migration.c b/migration.c
  index 0db0b6d..a4a39eb 100644
  --- a/migration.c
  +++ b/migration.c
  @@ -92,6 +92,9 @@ int do_migrate(Monitor *mon, const QDict *qdict, QObject 
  **ret_data)
           return -1;
       }
 
  +    if (qdict_get_try_bool(qdict, ft, 0))
  +        ft_mode = FT_INIT;
  +
       if (strstart(uri, tcp:, p)) {
           s = tcp_start_outgoing_migration(mon, p, max_throttle, detach,
                                            blk, inc);
  diff --git a/qmp-commands.hx b/qmp-commands.hx
  index 3486223..b28bf70 100644
  --- a/qmp-commands.hx
  +++ b/qmp-commands.hx
  @@ -431,13 +431,14 @@ EQMP
 
       {
           .name       = migrate,
  -        .args_type  = detach:-d,blk:-b,inc:-i,uri:s,
  -        .params     = [-d] [-b] [-i] uri,
  +        .args_type  = detach:-d,blk:-b,inc:-i,ft:-k,uri:s,
  +        .params     = [-d] [-b] [-i] [-k] uri,
           .help       = migrate to URI (using -d to not wait for 
  completion)
                      \n\t\t\t -b for migration without shared storage with
                       full copy of disk\n\t\t\t -i for migration without 
                      shared storage with incremental copy of disk 
  -                   (base image shared between src and destination),
  +                   (base image shared between src and destination)
  +                   \n\t\t\t -k for FT migration mode (Kemari),
           .user_print = monitor_user_noop,
        .mhandler.cmd_new = do_migrate,
       },
  --
  1.7.1.2
  --
  To unsubscribe from this list: send the line unsubscribe kvm in
  the body of a message to majord...@vger.kernel.org
  More majordomo info at  http://vger.kernel.org/majordomo-info.html
 
--
To unsubscribe from this list: send the line unsubscribe kvm in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [Qemu-devel] Re: [PATCH 18/19] Introduce -k option to enable FT migration mode (Kemari).

2010-12-27 Thread Yoshiaki Tamura
2010/12/27 Michael S. Tsirkin m...@redhat.com:
 On Mon, Dec 27, 2010 at 06:11:27PM +0900, Yoshiaki Tamura wrote:
 2010/12/27 Michael S. Tsirkin m...@redhat.com:
  On Mon, Dec 27, 2010 at 05:25:36PM +0900, Yoshiaki Tamura wrote:
  When -k option is set to migrate command, it will turn on ft_mode to
  start FT migration mode (Kemari).
 
  Signed-off-by: Yoshiaki Tamura tamura.yoshi...@lab.ntt.co.jp
  ---
   hmp-commands.hx |    7 ---
   migration.c     |    3 +++
   qmp-commands.hx |    7 ---
   3 files changed, 11 insertions(+), 6 deletions(-)
 
  diff --git a/hmp-commands.hx b/hmp-commands.hx
  index 4befbe2..0071409 100644
  --- a/hmp-commands.hx
  +++ b/hmp-commands.hx
  @@ -735,13 +735,14 @@ ETEXI
 
       {
           .name       = migrate,
  -        .args_type  = detach:-d,blk:-b,inc:-i,uri:s,
  -        .params     = [-d] [-b] [-i] uri,
  +        .args_type  = detach:-d,blk:-b,inc:-i,ft:-k,uri:s,
  +        .params     = [-d] [-b] [-i] [-k] uri,
           .help       = migrate to URI (using -d to not wait for 
  completion)
                      \n\t\t\t -b for migration without shared storage 
  with
                       full copy of disk\n\t\t\t -i for migration without 
                      shared storage with incremental copy of disk 
  -                   (base image shared between src and destination),
  +                   (base image shared between src and destination)
  +                   \n\t\t\t -k for FT migration mode (Kemari),
 
  FT - Fault tolerance?
  IMO it's preferrable to avoid abbreviations in the documentation.

 Yep.  It's fine for me to avoid abbreviations.

  Not sure whether we need to mention the codename here: is it likely to
  help the users?

 Ah:-)  Just didn't know what the official name should be, and
 placed Kemari for convenience.  Any ideas or preference here?

 Yoshi

 Do we need a name? Fault tolerance mode insufficient?

Not really.  Let's call it Fault Tolerance mode from now:-)

Yoshi


 
           .user_print = monitor_user_noop,
        .mhandler.cmd_new = do_migrate,
       },
  diff --git a/migration.c b/migration.c
  index 0db0b6d..a4a39eb 100644
  --- a/migration.c
  +++ b/migration.c
  @@ -92,6 +92,9 @@ int do_migrate(Monitor *mon, const QDict *qdict, 
  QObject **ret_data)
           return -1;
       }
 
  +    if (qdict_get_try_bool(qdict, ft, 0))
  +        ft_mode = FT_INIT;
  +
       if (strstart(uri, tcp:, p)) {
           s = tcp_start_outgoing_migration(mon, p, max_throttle, detach,
                                            blk, inc);
  diff --git a/qmp-commands.hx b/qmp-commands.hx
  index 3486223..b28bf70 100644
  --- a/qmp-commands.hx
  +++ b/qmp-commands.hx
  @@ -431,13 +431,14 @@ EQMP
 
       {
           .name       = migrate,
  -        .args_type  = detach:-d,blk:-b,inc:-i,uri:s,
  -        .params     = [-d] [-b] [-i] uri,
  +        .args_type  = detach:-d,blk:-b,inc:-i,ft:-k,uri:s,
  +        .params     = [-d] [-b] [-i] [-k] uri,
           .help       = migrate to URI (using -d to not wait for 
  completion)
                      \n\t\t\t -b for migration without shared storage 
  with
                       full copy of disk\n\t\t\t -i for migration without 
                      shared storage with incremental copy of disk 
  -                   (base image shared between src and destination),
  +                   (base image shared between src and destination)
  +                   \n\t\t\t -k for FT migration mode (Kemari),
           .user_print = monitor_user_noop,
        .mhandler.cmd_new = do_migrate,
       },
  --
  1.7.1.2
  --
  To unsubscribe from this list: send the line unsubscribe kvm in
  the body of a message to majord...@vger.kernel.org
  More majordomo info at  http://vger.kernel.org/majordomo-info.html
 


--
To unsubscribe from this list: send the line unsubscribe kvm in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [Qemu-devel] Re: [PATCH 18/19] Introduce -k option to enable FT migration mode (Kemari).

2010-12-27 Thread Avi Kivity

On 12/27/2010 01:07 PM, Yoshiaki Tamura wrote:


Not sure whether we need to mention the codename here: is it likely to
help the users?

  Ah:-)  Just didn't know what the official name should be, and
  placed Kemari for convenience.  Any ideas or preference here?

  Yoshi

  Do we need a name? Fault tolerance mode insufficient?

Not really.  Let's call it Fault Tolerance mode from now:-)


Then -k becomes meaningless.  Rename to -fault-tolerant?

--
error compiling committee.c: too many arguments to function

--
To unsubscribe from this list: send the line unsubscribe kvm in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [Qemu-devel] Re: [PATCH 18/19] Introduce -k option to enable FT migration mode (Kemari).

2010-12-27 Thread Yoshiaki Tamura
2010/12/28 Avi Kivity a...@redhat.com:
 On 12/27/2010 01:07 PM, Yoshiaki Tamura wrote:

 
     Not sure whether we need to mention the codename here: is it likely
  to
     help the users?
 
   Ah:-)  Just didn't know what the official name should be, and
   placed Kemari for convenience.  Any ideas or preference here?
 
   Yoshi
 
   Do we need a name? Fault tolerance mode insufficient?

 Not really.  Let's call it Fault Tolerance mode from now:-)

 Then -k becomes meaningless.  Rename to -fault-tolerant?

That's too long.  The option of migration is a single character
conventionally.  In that sense, -f wasn't a good option because
it usually reminds a file option, and -k was well fit not only
because Kemari but also not well used and almost harmless.

So, my preference is to keep -k option, but that may be
developer's (my) ego, and I'm happy to here what would be the
best for qemu community.

Yoshi


 --
 error compiling committee.c: too many arguments to function



--
To unsubscribe from this list: send the line unsubscribe kvm in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [Qemu-devel] Re: [PATCH 18/19] Introduce -k option to enable FT migration mode (Kemari).

2010-12-27 Thread Michael S. Tsirkin
On Tue, Dec 28, 2010 at 08:34:12AM +0900, Yoshiaki Tamura wrote:
 2010/12/28 Avi Kivity a...@redhat.com:
  On 12/27/2010 01:07 PM, Yoshiaki Tamura wrote:
 
  
      Not sure whether we need to mention the codename here: is it likely
   to
      help the users?
  
    Ah:-)  Just didn't know what the official name should be, and
    placed Kemari for convenience.  Any ideas or preference here?
  
    Yoshi
  
    Do we need a name? Fault tolerance mode insufficient?
 
  Not really.  Let's call it Fault Tolerance mode from now:-)
 
  Then -k becomes meaningless.  Rename to -fault-tolerant?
 
 That's too long.  The option of migration is a single character
 conventionally.  In that sense, -f wasn't a good option because
 it usually reminds a file option, and -k was well fit not only
 because Kemari but also not well used and almost harmless.
 
 So, my preference is to keep -k option, but that may be
 developer's (my) ego, and I'm happy to here what would be the
 best for qemu community.
 
 Yoshi

Hey, that's imporant too :)

It's not hard to invent a reason for -k if we need one. E.g.
the protocol is specific to the Kemari project, right?
So the text could be 'Fault Tolerance mode (using Kemari protocol)'
to avoid potential confusion with other fault tolerance solutions
if we ever get them, and the option stays -k :)

 
  --
  error compiling committee.c: too many arguments to function
 
 
 
--
To unsubscribe from this list: send the line unsubscribe kvm in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [Qemu-devel] Re: [PATCH 18/19] Introduce -k option to enable FT migration mode (Kemari).

2010-12-27 Thread Yoshiaki Tamura
2010/12/28 Michael S. Tsirkin m...@redhat.com:
 On Tue, Dec 28, 2010 at 08:34:12AM +0900, Yoshiaki Tamura wrote:
 2010/12/28 Avi Kivity a...@redhat.com:
  On 12/27/2010 01:07 PM, Yoshiaki Tamura wrote:
 
  
      Not sure whether we need to mention the codename here: is it likely
   to
      help the users?
  
    Ah:-)  Just didn't know what the official name should be, and
    placed Kemari for convenience.  Any ideas or preference here?
  
    Yoshi
  
    Do we need a name? Fault tolerance mode insufficient?
 
  Not really.  Let's call it Fault Tolerance mode from now:-)
 
  Then -k becomes meaningless.  Rename to -fault-tolerant?

 That's too long.  The option of migration is a single character
 conventionally.  In that sense, -f wasn't a good option because
 it usually reminds a file option, and -k was well fit not only
 because Kemari but also not well used and almost harmless.

 So, my preference is to keep -k option, but that may be
 developer's (my) ego, and I'm happy to here what would be the
 best for qemu community.

 Yoshi

 Hey, that's imporant too :)

Thanks, Michael :)

 It's not hard to invent a reason for -k if we need one. E.g.
 the protocol is specific to the Kemari project, right?

Right.

 So the text could be 'Fault Tolerance mode (using Kemari protocol)'
 to avoid potential confusion with other fault tolerance solutions
 if we ever get them, and the option stays -k :)

One thumbs up here :)

Yoshi


 
  --
  error compiling committee.c: too many arguments to function
 
 
 


--
To unsubscribe from this list: send the line unsubscribe kvm in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH 18/19] Introduce -k option to enable FT migration mode (Kemari).

2010-12-23 Thread Yoshiaki Tamura
When -k option is set to migrate command, it will turn on ft_mode to
start FT migration mode (Kemari).

Signed-off-by: Yoshiaki Tamura tamura.yoshi...@lab.ntt.co.jp
---
 hmp-commands.hx |7 ---
 migration.c |3 +++
 qmp-commands.hx |7 ---
 3 files changed, 11 insertions(+), 6 deletions(-)

diff --git a/hmp-commands.hx b/hmp-commands.hx
index 4befbe2..0071409 100644
--- a/hmp-commands.hx
+++ b/hmp-commands.hx
@@ -735,13 +735,14 @@ ETEXI
 
 {
 .name   = migrate,
-.args_type  = detach:-d,blk:-b,inc:-i,uri:s,
-.params = [-d] [-b] [-i] uri,
+.args_type  = detach:-d,blk:-b,inc:-i,ft:-k,uri:s,
+.params = [-d] [-b] [-i] [-k] uri,
 .help   = migrate to URI (using -d to not wait for completion)
  \n\t\t\t -b for migration without shared storage with
   full copy of disk\n\t\t\t -i for migration without 
  shared storage with incremental copy of disk 
- (base image shared between src and destination),
+ (base image shared between src and destination)
+ \n\t\t\t -k for FT migration mode (Kemari),
 .user_print = monitor_user_noop,   
.mhandler.cmd_new = do_migrate,
 },
diff --git a/migration.c b/migration.c
index 789efd2..730af12 100644
--- a/migration.c
+++ b/migration.c
@@ -92,6 +92,9 @@ int do_migrate(Monitor *mon, const QDict *qdict, QObject 
**ret_data)
 return -1;
 }
 
+if (qdict_get_try_bool(qdict, ft, 0))
+ft_mode = FT_INIT;
+
 if (strstart(uri, tcp:, p)) {
 s = tcp_start_outgoing_migration(mon, p, max_throttle, detach,
  blk, inc);
diff --git a/qmp-commands.hx b/qmp-commands.hx
index 3486223..b28bf70 100644
--- a/qmp-commands.hx
+++ b/qmp-commands.hx
@@ -431,13 +431,14 @@ EQMP
 
 {
 .name   = migrate,
-.args_type  = detach:-d,blk:-b,inc:-i,uri:s,
-.params = [-d] [-b] [-i] uri,
+.args_type  = detach:-d,blk:-b,inc:-i,ft:-k,uri:s,
+.params = [-d] [-b] [-i] [-k] uri,
 .help   = migrate to URI (using -d to not wait for completion)
  \n\t\t\t -b for migration without shared storage with
   full copy of disk\n\t\t\t -i for migration without 
  shared storage with incremental copy of disk 
- (base image shared between src and destination),
+ (base image shared between src and destination)
+ \n\t\t\t -k for FT migration mode (Kemari),
 .user_print = monitor_user_noop,   
.mhandler.cmd_new = do_migrate,
 },
-- 
1.7.1.2

--
To unsubscribe from this list: send the line unsubscribe kvm in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html