mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 01:33:56 -06:00
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:
parent
02b07434be
commit
81ed6482a3
5 changed files with 5 additions and 3 deletions
|
@ -1167,7 +1167,7 @@ void pc_guest_info_machine_done(Notifier *notifier, void *data)
|
|||
PcGuestInfoState *guest_info_state = container_of(notifier,
|
||||
PcGuestInfoState,
|
||||
machine_done);
|
||||
PCIBus *bus = find_i440fx();
|
||||
PCIBus *bus = PC_MACHINE(qdev_get_machine())->bus;
|
||||
|
||||
if (bus) {
|
||||
int extra_hosts = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue