Searched hist:"9 bc47305" (Results 1 – 1 of 1) sorted by relevance
/openbmc/qemu/hw/pci/ |
H A D | pci.c | 9bc47305 Thu Jun 06 03:48:52 CDT 2013 David Gibson <david@gibson.dropbear.id.au> 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>
|