qemu/hw/pci
David Gibson 9bc473057d pci: Simpler implementation of primary PCI bus
Currently pci_find_primary_bus() searches the list of root buses for one
with domain 0.  But since host buses are always registered with domain 0,
this just amounts to finding the only PCI host bus.  The only remaining
users of pci_find_primary_bus() are in pci-hotplug-old.c, which implements
the old style pci_add/pci_del commands.

Therefore, this patch redefines pci_find_primary_bus() to find the only
PCI root bus, returning an error if there are multiple roots.  The callers
in pci-hotplug-old.c are updated correspondingly, to produce sensible
error messages.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
2013-07-07 23:10:57 +03:00
..
Makefile.objs pci: Cleanup configuration for pci-hotplug.c 2013-07-04 10:45:31 +03:00
msi.c misc: move include files to include/qemu/ 2012-12-19 08:32:39 +01:00
msix.c pci: add VMSTATE_MSIX 2013-06-03 11:37:44 +02:00
pci_bridge.c pci: Allow PCI bus creation interfaces to specify the type of bus 2013-03-26 21:02:18 +02:00
pci_host.c pci: Replace pci_find_domain() with more general pci_root_bus_path() 2013-07-07 23:10:57 +03:00
pci-hotplug-old.c pci: Simpler implementation of primary PCI bus 2013-07-07 23:10:57 +03:00
pci-stub.c softmmu: move include files to include/sysemu/ 2012-12-19 08:32:45 +01:00
pci.c pci: Simpler implementation of primary PCI bus 2013-07-07 23:10:57 +03:00
pcie_aer.c pci: Replace pci_find_domain() with more general pci_root_bus_path() 2013-07-07 23:10:57 +03:00
pcie_host.c exec: move include files to include/exec/ 2012-12-19 08:31:31 +01:00
pcie_port.c pci_bridge: factor out common code 2013-03-26 21:02:17 +02:00
pcie.c pcie: Add endpoint capability initialization wrapper 2013-03-26 21:02:19 +02:00
shpc.c hw: move qdev-monitor.o to toplevel directory 2013-03-01 13:54:10 +01:00
slotid_cap.c hw: move qdev-monitor.o to toplevel directory 2013-03-01 13:54:10 +01:00