aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMarcel Apfelbaum <marcel@redhat.com>2015-11-26 18:00:28 +0200
committerMichael S. Tsirkin <mst@redhat.com>2015-12-22 17:45:13 +0200
commit81ed6482a3478685c4fd27d766a92c4e0f8b34d1 (patch)
tree00de29a82d3c77798eb7202ba2c3457282ec1a72 /include
parent02b07434bed8360715198b4cbfdfebd17f7cac32 (diff)
downloadqemu-81ed6482a3478685c4fd27d766a92c4e0f8b34d1.zip
qemu-81ed6482a3478685c4fd27d766a92c4e0f8b34d1.tar.gz
qemu-81ed6482a3478685c4fd27d766a92c4e0f8b34d1.tar.bz2
hw/i386: extend pxb query for all PC machines
Add bus property to PC machines and use it when looking for primary PCI root bus (bus 0). Signed-off-by: Marcel Apfelbaum <marcel@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Acked-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/hw/i386/pc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hw/i386/pc.h b/include/hw/i386/pc.h
index beb44ca..bbebf15 100644
--- a/include/hw/i386/pc.h
+++ b/include/hw/i386/pc.h
@@ -51,6 +51,7 @@ struct PCMachineState {
OnOffAuto vmport;
OnOffAuto smm;
ram_addr_t below_4g_mem_size, above_4g_mem_size;
+ PCIBus *bus;
};
#define PC_MACHINE_ACPI_DEVICE_PROP "acpi-device"