default devices: vga adapter.
commit84db615abc84bd5074e5a0189cb533f1853a4f22
authorGerd Hoffmann <kraxel@redhat.com>
Tue, 8 Dec 2009 12:11:45 +0000 (8 13:11 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Sat, 12 Dec 2009 14:17:29 +0000 (12 08:17 -0600)
tree41de1567c819b2d4f77261b59c0cc1841a0fe7a8
parent7c6a56cc63a4b9cfc93a8cb82646396b7439dac5
default devices: vga adapter.

Qemu creates a vga display for you in case you didn't specify one on the
command line.  Right now this is tied to the '-vga <type>' command line
switch, which in turn causes trouble if you are creating your gfx card
using '-device VGA,<props>'.

This patch adds a variable default_vga which says whenever a default
serial line should be added.  It is enabled by default.  It is cleared
when qemu finds '-vga' or '-device {VGA,Cirrus VGA,QEMUware SVGA}' on
the command line.

'-device VGA' still doesn't work though due to a initialization order
issue (vga must init before calling i440fx_init_memory_mappings).

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
(cherry picked from commit 64465297cd4c701942988f36f7ce707fb21cc1d8)
vl.c