mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 01:03:55 -06:00
pci: Fold host_buses list into PCIHostState functionality
The host_buses list is an odd structure - a list of pointers to PCI root buses existing in parallel to the normal qdev tree structure. This patch removes it, instead putting the link pointers into the PCIHostState structure, which have a 1:1 relationship to PCIHostBus structures anyway. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
2b8cc89a5c
commit
7588e2b055
2 changed files with 16 additions and 19 deletions
|
@ -46,6 +46,8 @@ struct PCIHostState {
|
|||
MemoryRegion mmcfg;
|
||||
uint32_t config_reg;
|
||||
PCIBus *bus;
|
||||
|
||||
QLIST_ENTRY(PCIHostState) next;
|
||||
};
|
||||
|
||||
typedef struct PCIHostBridgeClass {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue