summaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2014-10-28 10:09:11 +0100
committerMichael S. Tsirkin <mst@redhat.com>2014-11-03 18:32:48 +0200
commit6f00494abed261cdbfdd003fe45f671eb3a56d78 (patch)
treedda44144dd537ef9f5e3a67b0ad88ce686f1e2be /hw
parentd3f16ec887bb58b19eac94fcae139a39a7933e15 (diff)
downloadqemu-6f00494abed261cdbfdd003fe45f671eb3a56d78.tar.gz
qemu-6f00494abed261cdbfdd003fe45f671eb3a56d78.tar.bz2
qemu-6f00494abed261cdbfdd003fe45f671eb3a56d78.zip
vga: add default display to machine class
This allows machine classes to specify which display device they want as default. If unspecified the current behavior (try cirrus, failing that try stdvga, failing that use no display) will be used. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw')
-rw-r--r--hw/i386/pc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/i386/pc.c b/hw/i386/pc.c
index dc2fe6a666..1205db83bc 100644
--- a/hw/i386/pc.c
+++ b/hw/i386/pc.c
@@ -1526,6 +1526,7 @@ static void pc_generic_machine_class_init(ObjectClass *oc, void *data)
mc->is_default = qm->is_default;
mc->default_machine_opts = qm->default_machine_opts;
mc->default_boot_order = qm->default_boot_order;
+ mc->default_display = qm->default_display;
mc->compat_props = qm->compat_props;
mc->hw_version = qm->hw_version;
}