All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] xl: Support (by ignoring) xl migrate --live
@ 2015-05-14 12:41 Ian Jackson
  2015-05-14 14:05 ` Ian Campbell
  0 siblings, 1 reply; 11+ messages in thread
From: Ian Jackson @ 2015-05-14 12:41 UTC (permalink / raw)
  To: xen-devel
  Cc: Ian Jackson, Matthew Vernon, Wei Liu, Ian Campbell,
	Stefano Stabellini

xm migrate would do non-live migration (effectively, save, transfer
and restore) by default, unless you specified --live.

xl migrate always does live migration.  Honour (by ignoring) --live
for compatibility with old callers.  Document this.

(This patch should be backported as far as possible.)

Reported-by: Matthew Vernon <mcv21@cam.ac.uk>
Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
CC: Matthew Vernon <mcv21@cam.ac.uk>
---
 docs/man/xl.pod.1        |    8 ++++++++
 tools/libxl/xl_cmdimpl.c |    6 +++++-
 2 files changed, 13 insertions(+), 1 deletion(-)

diff --git a/docs/man/xl.pod.1 b/docs/man/xl.pod.1
index 16783c8..217a0ab 100644
--- a/docs/man/xl.pod.1
+++ b/docs/man/xl.pod.1
@@ -1513,6 +1513,14 @@ monitor types are:
 
 =back
 
+=head1 IGNORED FOR COMPATIBILITY WITH XM
+
+xl is mostly command-line compatible with the old xm utility used with
+the old Python xend.  For compatibility, the following options are
+ignored:
+
+=item B<xl migrate --live>
+
 =head1 TO BE DOCUMENTED
 
 We need better documentation for:
diff --git a/tools/libxl/xl_cmdimpl.c b/tools/libxl/xl_cmdimpl.c
index 648ca08..50a929a 100644
--- a/tools/libxl/xl_cmdimpl.c
+++ b/tools/libxl/xl_cmdimpl.c
@@ -4498,6 +4498,7 @@ int main_migrate(int argc, char **argv)
     int opt, daemonize = 1, monitor = 1, debug = 0;
     static struct option opts[] = {
         {"debug", 0, 0, 0x100},
+        {"live", 0, 0, 0x200},
         COMMON_LONG_OPTS,
         {0, 0, 0, 0}
     };
@@ -4516,9 +4517,12 @@ int main_migrate(int argc, char **argv)
         daemonize = 0;
         monitor = 0;
         break;
-    case 0x100:
+    case 0x100: /* --debug */
         debug = 1;
         break;
+    case 0x200: /* --live */
+        /* ignored for compatibility with xm */
+        break;
     }
 
     domid = find_domain(argv[optind]);
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2015-05-22 10:08 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-14 12:41 [PATCH] xl: Support (by ignoring) xl migrate --live Ian Jackson
2015-05-14 14:05 ` Ian Campbell
2015-05-21 14:51   ` Ian Campbell
2015-05-21 16:23     ` Olaf Hering
2015-05-21 16:34       ` Ian Campbell
2015-05-21 17:44         ` Olaf Hering
2015-05-21 18:02           ` Ian Campbell
2015-05-21 18:07             ` Andrew Cooper
2015-05-22  5:28             ` Olaf Hering
2015-05-22 10:08               ` Ian Campbell
2015-05-21 17:45         ` Andrew Cooper

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.