Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NIeWt-0008Kf-6b for qemu-devel@nongnu.org; Thu, 10 Dec 2009 03:37:43 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NIeWo-0008He-HN for qemu-devel@nongnu.org; Thu, 10 Dec 2009 03:37:42 -0500 Received: from [199.232.76.173] (port=54314 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NIeWo-0008HT-DJ for qemu-devel@nongnu.org; Thu, 10 Dec 2009 03:37:38 -0500 Received: from mx1.redhat.com ([209.132.183.28]:36518) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NIeWn-0008NS-Us for qemu-devel@nongnu.org; Thu, 10 Dec 2009 03:37:38 -0500 From: Markus Armbruster Subject: Re: [Qemu-devel] [FOR 0.12 PATCH v4 21/22] default devices: virtio consoles. References: <1260274314-2906-1-git-send-email-kraxel@redhat.com> <1260274314-2906-22-git-send-email-kraxel@redhat.com> Date: Thu, 10 Dec 2009 09:37:35 +0100 In-Reply-To: <1260274314-2906-22-git-send-email-kraxel@redhat.com> (Gerd Hoffmann's message of "Tue, 8 Dec 2009 13:11:53 +0100") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gerd Hoffmann Cc: lcapitulino@redhat.com, qemu-devel@nongnu.org, agraf@suse.de Gerd Hoffmann writes: > This patch adds a variable default_virtcon which says whenever a default > virtio console should be added. It is disabled by default, followup > patch will enable it for s390. It is cleared when qemu finds > '-virtiocon', '-device virtio-console-s390' or '-device > virtio-console-pci' on the command line. > > Signed-off-by: Gerd Hoffmann > --- > vl.c | 65 +++++++++++++++++++++++++++++++++++------------------------------ > 1 files changed, 35 insertions(+), 30 deletions(-) > > diff --git a/vl.c b/vl.c > index ab77c35..b4138be 100644 > --- a/vl.c > +++ b/vl.c > @@ -270,6 +270,7 @@ static void *boot_set_opaque; > > static int default_serial = 1; > static int default_parallel = 1; > +static int default_virtcon = 0; > static int default_monitor = 1; > static int default_vga = 1; > static int default_drive = 1; > @@ -280,6 +281,8 @@ static struct { > } default_list[] = { > { .driver = "isa-serial", .flag = &default_serial }, > { .driver = "isa-parallel", .flag = &default_parallel }, > + { .driver = "virtio-console-pci", .flag = &default_virtcon }, > + { .driver = "virtio-console-s390", .flag = &default_virtcon }, > { .driver = "VGA", .flag = &default_vga }, > { .driver = "Cirrus VGA", .flag = &default_vga }, > { .driver = "QEMUware SVGA", .flag = &default_vga }, > @@ -4699,10 +4702,11 @@ static void monitor_parse(const char *optarg, const char *mode) > > struct device_config { > enum { > - DEV_USB, /* -usbdevice */ > - DEV_BT, /* -bt */ > - DEV_SERIAL, /* -serial */ > - DEV_PARALLEL, /* -parallel */ > + DEV_USB, /* -usbdevice */ > + DEV_BT, /* -bt */ > + DEV_SERIAL, /* -serial */ > + DEV_PARALLEL, /* -parallel */ > + DEV_VIRTCON, /* -virtioconsole */ Elaborate comment decorations mess up git-blame. Just say no. > } type; > const char *cmdline; > QTAILQ_ENTRY(device_config) next; [...]