summaryrefslogtreecommitdiffstats
path: root/tests/qtest/libqos/pci.h
diff options
context:
space:
mode:
authorEric Auger2022-05-04 17:20:24 +0200
committerPaolo Bonzini2022-05-12 12:07:06 +0200
commit02ee7a8a97d3ddeda887b596005b462f680dc89c (patch)
tree1759603930eea8425c9ac9a1618c302b70796926 /tests/qtest/libqos/pci.h
parenttests/qtest/libqos/pci: Introduce pio_limit (diff)
downloadqemu-02ee7a8a97d3ddeda887b596005b462f680dc89c.tar.gz
qemu-02ee7a8a97d3ddeda887b596005b462f680dc89c.tar.xz
qemu-02ee7a8a97d3ddeda887b596005b462f680dc89c.zip
tests/qtest/libqos: Skip hotplug tests if pci root bus is not hotpluggable
ARM does not not support hotplug on pcie.0. Add a flag on the bus which tells if devices can be hotplugged and skip hotplug tests if the bus cannot be hotplugged. This is a temporary solution to enable the other pci tests on aarch64. Signed-off-by: Eric Auger <eric.auger@redhat.com> Acked-by: Thomas Huth <thuth@redhat.com> Reviewed-by: Alex Bennée <alex.bennee@linaro.org> Message-Id: <20220504152025.1785704-3-eric.auger@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tests/qtest/libqos/pci.h')
-rw-r--r--tests/qtest/libqos/pci.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/qtest/libqos/pci.h b/tests/qtest/libqos/pci.h
index a3c657d962..8389614523 100644
--- a/tests/qtest/libqos/pci.h
+++ b/tests/qtest/libqos/pci.h
@@ -52,6 +52,7 @@ struct QPCIBus {
uint64_t pio_alloc_ptr, pio_limit;
uint64_t mmio_alloc_ptr, mmio_limit;
bool has_buggy_msi; /* TRUE for spapr, FALSE for pci */
+ bool not_hotpluggable; /* TRUE if devices cannot be hotplugged */
};