Re: [PATCH v6 1/6] qtest/libqos: add a function to initialize secondary PCI buses

2021-12-07 Thread Thomas Huth
On 06/12/2021 23.20, Laurent Vivier wrote: Scan the PCI devices to find bridge and set PCI_SECONDARY_BUS and PCI_SUBORDINATE_BUS (algorithm from seabios) Signed-off-by: Laurent Vivier --- include/hw/pci/pci_bridge.h | 8 +++ tests/qtest/libqos/pci.c| 118 +++

[PATCH v6 1/6] qtest/libqos: add a function to initialize secondary PCI buses

2021-12-06 Thread Laurent Vivier
Scan the PCI devices to find bridge and set PCI_SECONDARY_BUS and PCI_SUBORDINATE_BUS (algorithm from seabios) Signed-off-by: Laurent Vivier --- include/hw/pci/pci_bridge.h | 8 +++ tests/qtest/libqos/pci.c| 118 tests/qtest/libqos/pci.h| 1 + 3 f