qemu-e2k/include
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
..
authz Clean up ill-advised or unusual header guards 2019-05-13 08:58:55 +02:00
block block: Propagate AioContext change to parents 2019-05-20 17:08:56 +02:00
chardev Clean up ill-advised or unusual header guards 2019-05-13 08:58:55 +02:00
crypto
disas Normalize header guard symbol definition. 2019-05-13 08:58:55 +02:00
exec Add CPUClass::tlb_fill. 2019-05-16 13:15:08 +01:00
fpu
hw pci: Simplify pci_bus_is_root() 2019-05-20 18:40:02 -04:00
io
libdecnumber
migration migration/colo.h: Remove obsolete codes 2019-05-14 17:33:35 +01:00
monitor monitor: Clean up how monitor_disas() funnels output to monitor 2019-04-18 22:18:59 +02:00
net
qapi
qemu Clean up decorations and whitespace around header guards 2019-05-13 08:58:55 +02:00
qom tcg: Remove CPUClass::handle_mmu_fault 2019-05-10 11:12:50 -07:00
scsi Normalize header guard symbol definition. 2019-05-13 08:58:55 +02:00
standard-headers
sysemu block: Add blk_set_allow_aio_context_change() 2019-05-20 17:08:56 +02:00
ui Normalize header guard symbol definition. 2019-05-13 08:58:55 +02:00
elf.h
glib-compat.h
qemu-common.h
qemu-io.h
trace-tcg.h