qemu/hw/pci-bridge
David Gibson b0e5196a52 pci: Simplify pci_bus_is_root()
pci_bus_is_root() currently relies on a method in the PCIBusClass.
But it's always known if a PCI bus is a root bus when we create it, so
using a dynamic method is overkill.

This replaces it with an IS_ROOT bit in a new flags field, which is set on
root buses and otherwise clear.  As a bonus this removes the special
is_root logic from pci_expander_bridge, since it already creates its bus
as a root bus.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Marcel Apfelbaum <marcel@redhat.com>
Reviewed-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Greg Kurz <groug@kaod.org>
Message-Id: <20190424041959.4087-3-david@gibson.dropbear.id.au>
2019-05-20 18:40:02 -04:00
..
dec.c pci-bridge/dec: Convert sysbus init function to realize function 2018-12-13 13:48:00 +00:00
dec.h
gen_pcie_root_port.c gen_pcie_root_port: Add ACS (Access Control Services) capability 2019-03-12 22:31:21 -04:00
i82801b11.c virtio,vhost,pci,pc: features, fixes and cleanups 2018-02-13 16:33:31 +00:00
ioh3420.c hw/pci-bridge/ioh3420: Remove unuseful header 2018-11-05 13:24:02 -05:00
Kconfig kconfig: add dependencies on CONFIG_MSI_NONBROKEN 2019-03-18 09:39:57 +01:00
Makefile.objs apb: split simba PCI bridge into hw/pci-bridge/simba.c 2018-01-24 19:19:50 +00:00
pci_bridge_dev.c pci/shpc: perform unplug via the hotplug handler 2018-12-20 11:19:12 -05:00
pci_expander_bridge.c pci: Simplify pci_bus_is_root() 2019-05-20 18:40:02 -04:00
pcie_pci_bridge.c pci/shpc: perform unplug via the hotplug handler 2018-12-20 11:19:12 -05:00
pcie_root_port.c gen_pcie_root_port: Add ACS (Access Control Services) capability 2019-03-12 22:31:21 -04:00
simba.c simba: rename PBMPCIBridge and QOM types to reflect simba naming 2018-01-24 19:19:50 +00:00
xio3130_downstream.c hw/pci-bridge/xio3130: Remove unused functions 2018-11-05 13:24:02 -05:00
xio3130_upstream.c hw/pci-bridge/xio3130: Remove unused functions 2018-11-05 13:24:02 -05:00