[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] Re: [FOR 0.12 PATCH v3 05/21] default devices: core code &
From: |
Alexander Graf |
Subject: |
[Qemu-devel] Re: [FOR 0.12 PATCH v3 05/21] default devices: core code & serial lines. |
Date: |
Mon, 7 Dec 2009 13:54:43 +0100 |
On 07.12.2009, at 13:42, Gerd Hoffmann wrote:
> Qemu creates a default serial line for you in case you didn't specify
> one on the command line. Right now this is tied to the '-serial
> <chardev>' command line switch, which in turn causes trouble if you are
> creating your serial line via '-device isa-serial,<props>'.
>
> This patch adds a variable default_serial which says whenever a default
> serial line should be added. It is enabled by default. It is cleared
> when qemu finds '-serial' or '-device isa-serial' on the command line.
>
> Part of the patch is some infrastructure for the '-device $driver'
> checking (default_driver_check function) which will also be used by the
> other patches of this series.
>
> Signed-off-by: Gerd Hoffmann <address@hidden>
> ---
> vl.c | 122 +++++++++++++++++++++++++++++++++++++++++++----------------------
> 1 files changed, 81 insertions(+), 41 deletions(-)
>
> diff --git a/vl.c b/vl.c
> index 24d5d92..eca4eee 100644
> --- a/vl.c
> +++ b/vl.c
> @@ -271,6 +271,30 @@ uint8_t qemu_uuid[16];
> static QEMUBootSetHandler *boot_set_handler;
> static void *boot_set_opaque;
>
> +static int default_serial = 1;
> +
> +static struct {
> + const char *driver;
> + int *flag;
> +} default_list[] = {
> + { .driver = "isa-serial", .flag = &default_serial },
What is the "isa-serial" driver supposed to say here? Is that the qdev driver
name? If so, that's just plain wrong. PPC for example uses the ESCC chip to
export its serial port.
Alex
- [Qemu-devel] [FOR 0.12 PATCH v3 01/21] Revert "monitor: Command-line flag to enable control mode", (continued)
- [Qemu-devel] [FOR 0.12 PATCH v3 01/21] Revert "monitor: Command-line flag to enable control mode", Gerd Hoffmann, 2009/12/07
- [Qemu-devel] [FOR 0.12 PATCH v3 05/21] default devices: core code & serial lines., Gerd Hoffmann, 2009/12/07
- [Qemu-devel] Re: [FOR 0.12 PATCH v3 05/21] default devices: core code & serial lines., Alexander Graf, 2009/12/07
- [Qemu-devel] Re: [FOR 0.12 PATCH v3 05/21] default devices: core code & serial lines., Gerd Hoffmann, 2009/12/07
- [Qemu-devel] Re: [FOR 0.12 PATCH v3 05/21] default devices: core code & serial lines., Alexander Graf, 2009/12/07
- [Qemu-devel] Re: [FOR 0.12 PATCH v3 05/21] default devices: core code & serial lines., Gerd Hoffmann, 2009/12/07
- [Qemu-devel] Re: [FOR 0.12 PATCH v3 05/21] default devices: core code & serial lines., Alexander Graf, 2009/12/07
- [Qemu-devel] Re: [FOR 0.12 PATCH v3 05/21] default devices: core code & serial lines., Gerd Hoffmann, 2009/12/07
- [Qemu-devel] Re: [FOR 0.12 PATCH v3 05/21] default devices: core code & serial lines., Alexander Graf, 2009/12/07
- [Qemu-devel] Re: [FOR 0.12 PATCH v3 05/21] default devices: core code & serial lines., Gerd Hoffmann, 2009/12/08
[Qemu-devel] Re: [FOR 0.12 PATCH v3 05/21] default devices: core code & serial lines.,
Alexander Graf <=
[Qemu-devel] [FOR 0.12 PATCH v3 11/21] default devices: network, Gerd Hoffmann, 2009/12/07
[Qemu-devel] [FOR 0.12 PATCH v3 12/21] default devices: drives, Gerd Hoffmann, 2009/12/07
[Qemu-devel] [FOR 0.12 PATCH v3 08/21] zap serial_monitor_mux, Gerd Hoffmann, 2009/12/07
[Qemu-devel] [FOR 0.12 PATCH v3 09/21] default devices: vga adapter., Gerd Hoffmann, 2009/12/07
[Qemu-devel] [FOR 0.12 PATCH v3 07/21] default devices: qemu monitor., Gerd Hoffmann, 2009/12/07
[Qemu-devel] [FOR 0.12 PATCH v3 10/21] default devices: add global cmd line option., Gerd Hoffmann, 2009/12/07
[Qemu-devel] [FOR 0.12 PATCH v3 15/21] chardev: make chardevs specified in config file work., Gerd Hoffmann, 2009/12/07