tests/libqos/pci: Make PCI access functions independent of global_qtest
authorThomas Huth <thuth@redhat.com>
Tue, 6 Nov 2018 19:15:38 +0000 (20:15 +0100)
committerThomas Huth <thuth@redhat.com>
Mon, 17 Dec 2018 14:36:39 +0000 (15:36 +0100)
commitd786f782521fd2843394b498b4254a05cfd0e1d3
tree9543dbac6cc22b31d0ad82cf1beefc64d304a130
parent139108f68486550869bd201f903f1884b78a4ae1
tests/libqos/pci: Make PCI access functions independent of global_qtest

QPCIBus already tracks QTestState, so use that state instead of an
implicit reliance on global_qtest.

Based on an earlier patch ("libqos: Use explicit QTestState for pci
operations") from Eric Blake.

Signed-off-by: Thomas Huth <thuth@redhat.com>
tests/libqos/pci-pc.c
tests/libqos/pci-spapr.c