diff options
author | Anthony Liguori <aliguori@us.ibm.com> | 2011-12-12 14:29:41 -0600 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2011-12-15 09:20:49 -0600 |
commit | ad6d45fa0837acf3e8cab323ee5b08e05a9410a5 (patch) | |
tree | 589be72d1f0ec05c6e6ff9d215c36186e845cc4c /hw/pc_piix.c | |
parent | b2b6c39a7915e82cade4ab8689344c91c5e45653 (diff) | |
download | qemu-ad6d45fa0837acf3e8cab323ee5b08e05a9410a5.tar.gz qemu-ad6d45fa0837acf3e8cab323ee5b08e05a9410a5.tar.bz2 qemu-ad6d45fa0837acf3e8cab323ee5b08e05a9410a5.zip |
qom: add vga node to the pc composition tree
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/pc_piix.c')
-rw-r--r-- | hw/pc_piix.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/hw/pc_piix.c b/hw/pc_piix.c index 2d5ea2c5ad..166c2fc25a 100644 --- a/hw/pc_piix.c +++ b/hw/pc_piix.c @@ -99,6 +99,7 @@ static void pc_init1(MemoryRegion *system_memory, MemoryRegion *ram_memory; MemoryRegion *pci_memory; MemoryRegion *rom_memory; + DeviceState *dev; pc_cpus_init(cpu_model); @@ -168,7 +169,10 @@ static void pc_init1(MemoryRegion *system_memory, pc_register_ferr_irq(gsi[13]); - pc_vga_init(pci_enabled? pci_bus: NULL); + dev = pc_vga_init(pci_enabled? pci_bus: NULL); + if (dev) { + qdev_property_add_child(qdev_get_root(), "vga", dev, NULL); + } if (xen_enabled()) { pci_create_simple(pci_bus, -1, "xen-platform"); |