All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] libxl: default to xenconsoled for pv guests, even if qemu is running
@ 2012-04-25 10:15 Ian Campbell
  2012-04-25 10:32 ` Ian Jackson
  2012-04-25 10:36 ` Stefano Stabellini
  0 siblings, 2 replies; 9+ messages in thread
From: Ian Campbell @ 2012-04-25 10:15 UTC (permalink / raw)
  To: xen-devel; +Cc: Ian.Jackson, Stefano Stabellini

# HG changeset patch
# User Ian Campbell <ian.campbell@citrix.com>
# Date 1335348624 -3600
# Node ID c8486295429011e9a220db1b6ed9f34ba690e729
# Parent  6f740f2f6e3e080e4bba9df59c826947885f6bd7
libxl: default to xenconsoled for pv guests, even if qemu is running.

Currently we prefer to use qemu for the disk backend if we are starting qemu
anyway (e.g. to service a disk).

Unfortunately qemu doesn't log the console, which xenconsoled can do via
XENCONSOLED_TRACE=guest. Since xenconsoled is also running anyway it seems like
there is no particular reason to prefer qemu just because it happens to be
running.

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

I'm not sure if this is 4.2 material, perhaps too late to be making this sort
of change?

diff -r 6f740f2f6e3e -r c84862954290 tools/libxl/libxl_create.c
--- a/tools/libxl/libxl_create.c	Wed Apr 25 11:05:05 2012 +0100
+++ b/tools/libxl/libxl_create.c	Wed Apr 25 11:10:24 2012 +0100
@@ -682,8 +682,7 @@ static int do_domain_create(libxl__gc *g
                 d_config->num_vfbs, d_config->vfbs,
                 d_config->num_disks, &d_config->disks[0]);
 
-        if (need_qemu)
-             console.consback = LIBXL__CONSOLE_BACKEND_IOEMU;
+        console.consback = LIBXL__CONSOLE_BACKEND_XENCONSOLED;
 
         libxl__device_console_add(gc, domid, &console, &state);
         libxl__device_console_dispose(&console);
diff -r 6f740f2f6e3e -r c84862954290 tools/libxl/libxl_dm.c
--- a/tools/libxl/libxl_dm.c	Wed Apr 25 11:05:05 2012 +0100
+++ b/tools/libxl/libxl_dm.c	Wed Apr 25 11:10:24 2012 +0100
@@ -1093,11 +1093,6 @@ int libxl__need_xenpv_qemu(libxl__gc *gc
 {
     int i, ret = 0;
 
-    if (nr_consoles > 1) {
-        ret = 1;
-        goto out;
-    }
-
     for (i = 0; i < nr_consoles; i++) {
         if (consoles[i].consback == LIBXL__CONSOLE_BACKEND_IOEMU) {
             ret = 1;

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

end of thread, other threads:[~2012-05-11 14:53 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-25 10:15 [PATCH] libxl: default to xenconsoled for pv guests, even if qemu is running Ian Campbell
2012-04-25 10:32 ` Ian Jackson
2012-04-25 10:52   ` Ian Campbell
2012-04-25 10:36 ` Stefano Stabellini
2012-04-25 10:40   ` Ian Campbell
2012-04-25 10:49     ` Stefano Stabellini
2012-04-25 11:02       ` Ian Campbell
2012-04-25 15:34         ` Stefano Stabellini
2012-05-11 14:53           ` Ian Jackson

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.