]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
tests: AP matrix node device
authorShalini Chellathurai Saroja <shalini@linux.ibm.com>
Thu, 3 Dec 2020 17:59:39 +0000 (18:59 +0100)
committerErik Skultety <eskultet@redhat.com>
Wed, 9 Dec 2020 13:03:05 +0000 (14:03 +0100)
Add tests to verify libvirt node device driver support for AP matrix
device.

Signed-off-by: Shalini Chellathurai Saroja <shalini@linux.ibm.com>
Reviewed-by: Bjoern Walk <bwalk@linux.ibm.com>
Reviewed-by: Boris Fiuczynski <fiuczy@linux.ibm.com>
Reviewed-by: Erik Skultety <eskultet@redhat.com>
tests/nodedevschemadata/ap_matrix.xml [new file with mode: 0644]
tests/nodedevschemadata/mdev_ee0b88c4_f554_4dc1_809d_b2a01e8e48ad.xml [new file with mode: 0644]
tests/nodedevxml2xmltest.c

diff --git a/tests/nodedevschemadata/ap_matrix.xml b/tests/nodedevschemadata/ap_matrix.xml
new file mode 100644 (file)
index 0000000..30dab9c
--- /dev/null
@@ -0,0 +1,7 @@
+<device>
+  <name>ap_matrix</name>
+  <path>/sys/devices/vfio_ap/matrix</path>
+  <parent>computer</parent>
+  <capability type='ap_matrix'>
+  </capability>
+</device>
diff --git a/tests/nodedevschemadata/mdev_ee0b88c4_f554_4dc1_809d_b2a01e8e48ad.xml b/tests/nodedevschemadata/mdev_ee0b88c4_f554_4dc1_809d_b2a01e8e48ad.xml
new file mode 100644 (file)
index 0000000..106f759
--- /dev/null
@@ -0,0 +1,9 @@
+<device>
+  <name>mdev_ee0b88c4-f554-4dc1-809d-b2a01e8e48ad</name>
+  <path>/sys/devices/vfio_ap/matrix/mdev_ee0b88c4-f554-4dc1-809d-b2a01e8e48ad</path>
+  <parent>ap_matrix</parent>
+  <capability type='mdev'>
+    <type id='vfio_ap-passthrough'/>
+    <iommuGroup number='0'/>
+  </capability>
+</device>
index a8cbe6a9ffa9aae8e9d083a386e6b9c441b9e526..dc8cb04fcd5292ace9b43268c9ff4e66c87b7f3b 100644 (file)
@@ -127,6 +127,8 @@ mymain(void)
     DO_TEST("css_0_0_fffe_mdev_types");
     DO_TEST("ap_card07");
     DO_TEST("ap_07_0038");
+    DO_TEST("ap_matrix");
+    DO_TEST("mdev_ee0b88c4_f554_4dc1_809d_b2a01e8e48ad");
 
     return ret == 0 ? EXIT_SUCCESS : EXIT_FAILURE;
 }