qemu-arm
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 3/6] tests/qtest/libqos: Skip hotplug tests if pci root bus i


From: Thomas Huth
Subject: Re: [PATCH 3/6] tests/qtest/libqos: Skip hotplug tests if pci root bus is not hotpluggable
Date: Fri, 14 Jan 2022 09:57:02 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.4.0

On 10/01/2022 22.19, Eric Auger wrote:
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>
---
  tests/qtest/e1000e-test.c         |  6 ++++++
  tests/qtest/libqos/pci.h          |  1 +
  tests/qtest/vhost-user-blk-test.c | 10 ++++++++++
  tests/qtest/virtio-blk-test.c     |  5 +++++
  tests/qtest/virtio-net-test.c     |  5 +++++
  tests/qtest/virtio-rng-test.c     |  5 +++++
  6 files changed, 32 insertions(+)

diff --git a/tests/qtest/e1000e-test.c b/tests/qtest/e1000e-test.c
index 0273fe4c156..0d656d3af63 100644
--- a/tests/qtest/e1000e-test.c
+++ b/tests/qtest/e1000e-test.c
@@ -235,6 +235,12 @@ static void test_e1000e_multiple_transfers(void *obj, void 
*data,
  static void test_e1000e_hotplug(void *obj, void *data, QGuestAllocator * 
alloc)
  {
      QTestState *qts = global_qtest;  /* TODO: get rid of global_qtest here */
+    QE1000E_PCI *dev = obj;
+
+    if (dev->pci_dev.bus->not_hotpluggable) {
+        g_test_skip("bus pci.0 does not support hotplug");

I'd maybe rather say "pci bus does not support hotplug", i.e. avoid "pci.0" here, in case this is ever used for another port, too.

Apart from that:
Acked-by: Thomas Huth <thuth@redhat.com>


+        return;
+    }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]