qtest/libqos: add a function to initialize secondary PCI buses
authorLaurent Vivier <lvivier@redhat.com>
Wed, 8 Dec 2021 13:03:47 +0000 (14:03 +0100)
committerThomas Huth <thuth@redhat.com>
Wed, 15 Dec 2021 07:07:04 +0000 (08:07 +0100)
commitefe84f03ea88db49ae9180a9ffe4634349333c4e
treeba353867b4b42e96ef27fa243e3d1bd540821bf4
parent76b56fdfc9fa43ec6e5986aee33f108c6c6a511e
qtest/libqos: add a function to initialize secondary PCI buses

Scan the PCI devices to find bridge and set PCI_SECONDARY_BUS and
PCI_SUBORDINATE_BUS (algorithm from seabios)

Signed-off-by: Laurent Vivier <lvivier@redhat.com>
Acked-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20211208130350.10178-2-lvivier@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
include/hw/pci/pci_bridge.h
tests/qtest/libqos/pci.c
tests/qtest/libqos/pci.h