Stefano Stabellini
2011-Feb-04 13:52 UTC
[Xen-devel] [PATCH] libxl: fix console autoconnect with pygrub
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@eu.citrix.com> diff -r 4bdb78db22b6 tools/libxl/libxl_create.c --- a/tools/libxl/libxl_create.c Wed Feb 02 17:06:36 2011 +0000 +++ b/tools/libxl/libxl_create.c Fri Feb 04 13:47: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-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Ian Jackson
2011-Feb-04 18:30 UTC
Re: [Xen-devel] [PATCH] libxl: fix console autoconnect with pygrub
Stefano Stabellini writes ("[Xen-devel] [PATCH] libxl: fix console autoconnect with pygrub"):> 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.Acked, and applied, thanks. Ian. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel