[libvirt] [PATCH v2 1/6] tests: add vfio-ap mdev tests

Ján Tomko jtomko at redhat.com
Tue Aug 27 11:41:39 UTC 2019


On Tue, Aug 13, 2019 at 05:40:25PM +0200, Boris Fiuczynski wrote:
>Signed-off-by: Boris Fiuczynski <fiuczy at linux.ibm.com>
>Reviewed-by: Marc Hartmayer <mhartmay at linux.ibm.com>
>---
> .../hostdev-subsys-mdev-vfio-ap-boot-fail.xml | 23 +++++++++++++++
> .../hostdev-subsys-mdev-vfio-ap.args          | 28 +++++++++++++++++++
> .../hostdev-subsys-mdev-vfio-ap.xml           | 22 +++++++++++++++
> tests/qemuxml2argvtest.c                      |  9 ++++++
> .../hostdev-subsys-mdev-vfio-ap.xml           | 27 ++++++++++++++++++
> tests/qemuxml2xmltest.c                       |  4 +++
> 6 files changed, 113 insertions(+)
> create mode 100644 tests/qemuxml2argvdata/hostdev-subsys-mdev-vfio-ap-boot-fail.xml
> create mode 100644 tests/qemuxml2argvdata/hostdev-subsys-mdev-vfio-ap.args
> create mode 100644 tests/qemuxml2argvdata/hostdev-subsys-mdev-vfio-ap.xml
> create mode 100644 tests/qemuxml2xmloutdata/hostdev-subsys-mdev-vfio-ap.xml
>
>diff --git a/tests/qemuxml2argvtest.c b/tests/qemuxml2argvtest.c
>index c166fd18d6..f113dbb0fd 100644
>--- a/tests/qemuxml2argvtest.c
>+++ b/tests/qemuxml2argvtest.c
>@@ -1633,6 +1633,15 @@ mymain(void)
>             QEMU_CAPS_CCW_CSSID_UNRESTRICTED,
>             QEMU_CAPS_DEVICE_VFIO_CCW);
>
>+    DO_TEST("hostdev-subsys-mdev-vfio-ap",
>+            QEMU_CAPS_CCW,
>+            QEMU_CAPS_CCW_CSSID_UNRESTRICTED,
>+            QEMU_CAPS_DEVICE_VFIO_AP);
>+    DO_TEST_FAILURE("hostdev-subsys-mdev-vfio-ap-boot-fail",
>+            QEMU_CAPS_CCW,
>+            QEMU_CAPS_CCW_CSSID_UNRESTRICTED,
>+            QEMU_CAPS_DEVICE_VFIO_AP);
>+

I see both:
  <flag name='virtual-css-bridge.cssid-unrestricted'/>
and
  <flag name='vfio-ap'/>
in tests/qemucapabilitiesdata/caps_4.0.0.s390x.xml

Can you use DO_TEST_CAPS_ARCH_LATEST and
DO_TEST_CAPS_ARCH_LATEST_FAILURE instead, to test against real QEMU
capabilities instead of enumerating them?

Jano

>     DO_TEST_FULL("restore-v2",
>                  ARG_MIGRATE_FROM, "exec:cat",
>                  ARG_MIGRATE_FD, 7,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20190827/8e68d01b/attachment-0001.sig>


More information about the libvir-list mailing list