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>
This commit is contained in:
Marcel Apfelbaum 2015-11-26 18:00:28 +02:00 committed by Michael S. Tsirkin
parent 02b07434be
commit 81ed6482a3
5 changed files with 5 additions and 3 deletions

View file

@ -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"