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-changelog

[Xen-changelog] [xen-unstable] libxl: fix console autoconnect with pygru

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] libxl: fix console autoconnect with pygrub, by invoking xenconsole twice
From: Xen patchbot-unstable <patchbot@xxxxxxx>
Date: Wed, 09 Feb 2011 06:50:18 -0800
Delivery-date: Wed, 09 Feb 2011 06:50:40 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>
# Date 1296844195 0
# Node ID d5863e86c05b0f7e2eba03e03d320adfbf208a05
# Parent  6399079b44f392382e08f7c839ebf4e207f57973
libxl: fix console autoconnect with pygrub, by invoking xenconsole twice

When using pygrub we have to connect to the console twice: once at the
beginning to connect to pygrub and a second time after creating the pv
console to connect to the guest's console.

Signed-off-by: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>
Acked-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
Committed-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
---
 tools/libxl/libxl_create.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -r 6399079b44f3 -r d5863e86c05b tools/libxl/libxl_create.c
--- a/tools/libxl/libxl_create.c        Fri Feb 04 17:41:37 2011 +0000
+++ b/tools/libxl/libxl_create.c        Fri Feb 04 18:29:55 2011 +0000
@@ -543,7 +543,7 @@ static int do_domain_create(libxl_ctx *c
     for (i = 0; i < d_config->num_pcidevs; i++)
         libxl_device_pci_add(ctx, domid, &d_config->pcidevs[i]);
 
-    if ( d_config->c_info.hvm && cb ) {
+    if ( cb && (d_config->c_info.hvm || d_config->b_info.u.pv.bootloader )) {
         if ( (*cb)(ctx, domid, priv) )
             goto error_out;
     }

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] libxl: fix console autoconnect with pygrub, by invoking xenconsole twice, Xen patchbot-unstable <=