mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-01 23:03:54 -06:00
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>
This commit is contained in:
parent
3df72d1c55
commit
02ee7a8a97
6 changed files with 32 additions and 0 deletions
|
@ -173,6 +173,11 @@ static void hotplug(void *obj, void *data, QGuestAllocator *t_alloc)
|
|||
QTestState *qts = dev->pdev->bus->qts;
|
||||
const char *arch = qtest_get_arch();
|
||||
|
||||
if (dev->pdev->bus->not_hotpluggable) {
|
||||
g_test_skip("pci bus does not support hotplug");
|
||||
return;
|
||||
}
|
||||
|
||||
qtest_qmp_device_add(qts, "virtio-net-pci", "net1",
|
||||
"{'addr': %s}", stringify(PCI_SLOT_HP));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue