WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH] xl: support console autoconnect on restore

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] xl: support console autoconnect on restore
From: Ian Campbell <ian.campbell@xxxxxxxxxx>
Date: Thu, 02 Sep 2010 17:24:51 +0100
Cc: Ian Campbell <ian.campbell@xxxxxxxxxx>
Delivery-date: Thu, 02 Sep 2010 09:25:57 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Ian Campbell <ian.campbell@xxxxxxxxxx>
# Date 1283444088 -3600
# Node ID 4f93c55a488c7cdde0bdcf2235f8de1b7c80a1af
# Parent  5ad37819cddd19a270659d50ddf48da27ef987f6
xl: support console autoconnect on restore

Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx>

diff -r 5ad37819cddd -r 4f93c55a488c tools/libxl/xl_cmdimpl.c
--- a/tools/libxl/xl_cmdimpl.c  Thu Sep 02 17:14:13 2010 +0100
+++ b/tools/libxl/xl_cmdimpl.c  Thu Sep 02 17:14:48 2010 +0100
@@ -2707,11 +2707,14 @@ int main_restore(int argc, char **argv)
     char *checkpoint_file = NULL;
     char *config_file = NULL;
     struct domain_create dom_info;
-    int paused = 0, debug = 0, daemonize = 1;
+    int paused = 0, debug = 0, daemonize = 1, console_autoconnect = 0;
     int opt, rc;
 
-    while ((opt = getopt(argc, argv, "hpde")) != -1) {
-        switch (opt) {
+    while ((opt = getopt(argc, argv, "chpde")) != -1) {
+        switch (opt) {
+        case 'c':
+            console_autoconnect = 1;
+            break;
         case 'p':
             paused = 1;
             break;
@@ -2747,6 +2750,7 @@ int main_restore(int argc, char **argv)
     dom_info.config_file = config_file;
     dom_info.restore_file = checkpoint_file;
     dom_info.migrate_fd = -1;
+    dom_info.console_autoconnect = console_autoconnect;
 
     rc = create_domain(&dom_info);
     if (rc < 0)

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] xl: support console autoconnect on restore, Ian Campbell <=