aboutsummaryrefslogtreecommitdiff
path: root/hw/pc.c
diff options
context:
space:
mode:
authorGlauber Costa <glommer@redhat.com>2011-05-16 15:45:08 -0300
committerAnthony Liguori <aliguori@us.ibm.com>2011-06-07 13:52:30 -0500
commita90d4690074526f54ad0851fce19fa6783f06803 (patch)
treeb19b9e738828223ed7d13b77a70ca754154d8fae /hw/pc.c
parentc1990ebfa11265d3aa9b6a4d5d1a02bd3f9ac5c6 (diff)
downloadqemu-a90d4690074526f54ad0851fce19fa6783f06803.zip
qemu-a90d4690074526f54ad0851fce19fa6783f06803.tar.gz
qemu-a90d4690074526f54ad0851fce19fa6783f06803.tar.bz2
Add an isa device for SGA
This patch adds a dummy legacy ISA device whose responsibility is to deploy sgabios, an option rom for a serial graphics adapter. The proposal is that this device is always-on when -nographics, but can otherwise be enable in any setup when -device sga is used. [v2: suggestions on qdev by Markus ] [v3: cleanups and documentation, per list suggestions ] Signed-off-by: Glauber Costa <glommer@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/pc.c')
-rw-r--r--hw/pc.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/hw/pc.c b/hw/pc.c
index 8106197..a3e8539 100644
--- a/hw/pc.c
+++ b/hw/pc.c
@@ -1070,6 +1070,15 @@ void pc_vga_init(PCIBus *pci_bus)
isa_vga_init();
}
}
+
+ /*
+ * sga does not suppress normal vga output. So a machine can have both a
+ * vga card and sga manually enabled. Output will be seen on both.
+ * For nographic case, sga is enabled at all times
+ */
+ if (display_type == DT_NOGRAPHIC) {
+ isa_create_simple("sga");
+ }
}
static void cpu_request_exit(void *opaque, int irq, int level)