default devices: core code & serial lines.
commit96639424e262051f08c191f5933d02786d3f1d5c
authorGerd Hoffmann <kraxel@redhat.com>
Tue, 8 Dec 2009 12:11:41 +0000 (8 13:11 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Sat, 12 Dec 2009 14:17:29 +0000 (12 08:17 -0600)
tree31ae2c148d75c9c652ac7f5854447d1107351eaa
parent6ac733bf09daf1ed07af632018944264cedeb3df
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>
(cherry picked from commit 998bbd74b9d813b14a3a3b5009a5d5a48c7dce51)
vl.c