]> git.proxmox.com Git - mirror_qemu.git/commit - vl.c
default devices: core code & serial lines.
authorGerd Hoffmann <kraxel@redhat.com>
Tue, 8 Dec 2009 12:11:41 +0000 (13:11 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Sat, 12 Dec 2009 13:59:42 +0000 (07:59 -0600)
commit998bbd74b9d813b14a3a3b5009a5d5a48c7dce51
treee4c6cb4a8a504ec595c7ce67d6a8c34471b08be8
parent735ba5884943ad91be660b59092ab7592c4bde07
default devices: core code & serial lines.

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 <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
vl.c