]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemuxml2xmltest: Convert all s390 test cases to real capabilities
authorPeter Krempa <pkrempa@redhat.com>
Fri, 24 Mar 2023 14:10:25 +0000 (15:10 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 3 Apr 2023 07:19:08 +0000 (09:19 +0200)
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
25 files changed:
tests/qemuxml2xmloutdata/disk-virtio-s390-zpci.s390x-latest.xml [moved from tests/qemuxml2xmloutdata/disk-virtio-s390-zpci.xml with 91% similarity]
tests/qemuxml2xmloutdata/hostdev-scsi-vhost-scsi-ccw.s390x-latest.xml [moved from tests/qemuxml2xmloutdata/hostdev-scsi-vhost-scsi-ccw.xml with 89% similarity]
tests/qemuxml2xmloutdata/hostdev-subsys-mdev-vfio-ap.s390x-latest.xml [moved from tests/qemuxml2xmloutdata/hostdev-subsys-mdev-vfio-ap.xml with 85% similarity]
tests/qemuxml2xmloutdata/hostdev-subsys-mdev-vfio-ccw.s390x-latest.xml [moved from tests/qemuxml2xmloutdata/hostdev-subsys-mdev-vfio-ccw.xml with 85% similarity]
tests/qemuxml2xmloutdata/hostdev-vfio-zpci-autogenerate-fids.s390x-latest.xml [moved from tests/qemuxml2xmloutdata/hostdev-vfio-zpci-autogenerate-fids.xml with 93% similarity]
tests/qemuxml2xmloutdata/hostdev-vfio-zpci-autogenerate-uids.s390x-latest.xml [moved from tests/qemuxml2xmloutdata/hostdev-vfio-zpci-autogenerate-uids.xml with 93% similarity]
tests/qemuxml2xmloutdata/hostdev-vfio-zpci-autogenerate.s390x-latest.xml [moved from tests/qemuxml2xmloutdata/hostdev-vfio-zpci-autogenerate.xml with 91% similarity]
tests/qemuxml2xmloutdata/hostdev-vfio-zpci-boundaries.s390x-latest.xml [moved from tests/qemuxml2xmloutdata/hostdev-vfio-zpci-boundaries.xml with 94% similarity]
tests/qemuxml2xmloutdata/hostdev-vfio-zpci-ccw-memballoon.s390x-latest.xml [moved from tests/qemuxml2xmloutdata/hostdev-vfio-zpci-ccw-memballoon.xml with 96% similarity]
tests/qemuxml2xmloutdata/hostdev-vfio-zpci-multidomain-many.s390x-latest.xml [moved from tests/qemuxml2xmloutdata/hostdev-vfio-zpci-multidomain-many.xml with 97% similarity]
tests/qemuxml2xmloutdata/hostdev-vfio-zpci.s390x-latest.xml [moved from tests/qemuxml2xmloutdata/hostdev-vfio-zpci.xml with 91% similarity]
tests/qemuxml2xmloutdata/input-virtio-ccw.s390x-latest.xml [moved from tests/qemuxml2xmloutdata/input-virtio-ccw.xml with 89% similarity]
tests/qemuxml2xmloutdata/machine-loadparm-multiple-disks-nets-s390.s390x-latest.xml [moved from tests/qemuxml2xmloutdata/machine-loadparm-multiple-disks-nets-s390.xml with 91% similarity]
tests/qemuxml2xmloutdata/s390-panic-missing.s390x-latest.xml [moved from tests/qemuxml2xmloutdata/s390-panic-missing.xml with 86% similarity]
tests/qemuxml2xmloutdata/s390-panic-no-address.s390x-latest.xml [moved from tests/qemuxml2xmloutdata/s390-panic-no-address.xml with 85% similarity]
tests/qemuxml2xmloutdata/s390-panic.s390x-latest.xml [moved from tests/qemuxml2xmloutdata/s390-panic.xml with 90% similarity]
tests/qemuxml2xmloutdata/s390-serial-2.s390x-latest.xml [moved from tests/qemuxml2xmloutdata/s390-serial-2.xml with 86% similarity]
tests/qemuxml2xmloutdata/s390-serial-console.s390x-latest.xml [moved from tests/qemuxml2xmloutdata/s390-serial.xml with 84% similarity]
tests/qemuxml2xmloutdata/s390-serial.s390x-latest.xml [moved from tests/qemuxml2xmloutdata/s390-serial-console.xml with 84% similarity]
tests/qemuxml2xmloutdata/vhost-vsock-ccw-auto.s390x-latest.xml [moved from tests/qemuxml2xmloutdata/vhost-vsock-ccw-auto.xml with 87% similarity]
tests/qemuxml2xmloutdata/vhost-vsock-ccw.s390x-latest.xml [new file with mode: 0644]
tests/qemuxml2xmloutdata/vhost-vsock-ccw.xml [deleted symlink]
tests/qemuxml2xmloutdata/video-virtio-gpu-ccw-auto.s390x-latest.xml [moved from tests/qemuxml2xmloutdata/video-virtio-gpu-ccw-auto.xml with 88% similarity]
tests/qemuxml2xmloutdata/video-virtio-gpu-ccw.s390x-latest.xml [moved from tests/qemuxml2xmloutdata/video-virtio-gpu-ccw.xml with 89% similarity]
tests/qemuxml2xmltest.c

similarity index 91%
rename from tests/qemuxml2xmloutdata/disk-virtio-s390-zpci.xml
rename to tests/qemuxml2xmloutdata/disk-virtio-s390-zpci.s390x-latest.xml
index bf1fe681beed04e84b5a72d8095fde3647364826..c98bf7816068901bf1a9cd6c1a45b8188b9750d5 100644 (file)
@@ -8,6 +8,9 @@
     <type arch='s390x' machine='s390-ccw-virtio'>hvm</type>
     <boot dev='hd'/>
   </os>
+  <cpu mode='custom' match='exact' check='none'>
+    <model fallback='forbid'>qemu</model>
+  </cpu>
   <clock offset='utc'/>
   <on_poweroff>destroy</on_poweroff>
   <on_reboot>restart</on_reboot>
similarity index 89%
rename from tests/qemuxml2xmloutdata/hostdev-scsi-vhost-scsi-ccw.xml
rename to tests/qemuxml2xmloutdata/hostdev-scsi-vhost-scsi-ccw.s390x-latest.xml
index 95eff7ead69974413e23579714481f5812e336fe..efd3027d3eb803396b695e468e6dbdf896166216 100644 (file)
@@ -8,6 +8,9 @@
     <type arch='s390x' machine='s390-ccw-virtio'>hvm</type>
     <boot dev='hd'/>
   </os>
+  <cpu mode='custom' match='exact' check='none'>
+    <model fallback='forbid'>qemu</model>
+  </cpu>
   <clock offset='utc'/>
   <on_poweroff>destroy</on_poweroff>
   <on_reboot>restart</on_reboot>
@@ -23,6 +26,7 @@
     <controller type='scsi' index='0' model='virtio-scsi'>
       <address type='ccw' cssid='0xfe' ssid='0x0' devno='0x0001'/>
     </controller>
+    <controller type='pci' index='0' model='pci-root'/>
     <audio id='1' type='none'/>
     <hostdev mode='subsystem' type='scsi_host' managed='no'>
       <source protocol='vhost' wwpn='naa.5123456789abcde0'/>
similarity index 85%
rename from tests/qemuxml2xmloutdata/hostdev-subsys-mdev-vfio-ap.xml
rename to tests/qemuxml2xmloutdata/hostdev-subsys-mdev-vfio-ap.s390x-latest.xml
index d8a304371899608f40203c9ff4860365e58d826c..96cd88bfdd1a7ef9cc847cf74639802e3fc38048 100644 (file)
@@ -8,12 +8,16 @@
     <type arch='s390x' machine='s390-ccw-virtio'>hvm</type>
     <boot dev='hd'/>
   </os>
+  <cpu mode='custom' match='exact' check='none'>
+    <model fallback='forbid'>qemu</model>
+  </cpu>
   <clock offset='utc'/>
   <on_poweroff>destroy</on_poweroff>
   <on_reboot>restart</on_reboot>
   <on_crash>destroy</on_crash>
   <devices>
     <emulator>/usr/bin/qemu-system-s390x</emulator>
+    <controller type='pci' index='0' model='pci-root'/>
     <audio id='1' type='none'/>
     <hostdev mode='subsystem' type='mdev' managed='no' model='vfio-ap'>
       <source>
similarity index 85%
rename from tests/qemuxml2xmloutdata/hostdev-subsys-mdev-vfio-ccw.xml
rename to tests/qemuxml2xmloutdata/hostdev-subsys-mdev-vfio-ccw.s390x-latest.xml
index 37f83857176a45766a5a26e143dca961ae614614..b411a2a34871aab6470ab73e3a4f8040928bcb11 100644 (file)
@@ -8,12 +8,16 @@
     <type arch='s390x' machine='s390-ccw-virtio'>hvm</type>
     <boot dev='hd'/>
   </os>
+  <cpu mode='custom' match='exact' check='none'>
+    <model fallback='forbid'>qemu</model>
+  </cpu>
   <clock offset='utc'/>
   <on_poweroff>destroy</on_poweroff>
   <on_reboot>restart</on_reboot>
   <on_crash>destroy</on_crash>
   <devices>
     <emulator>/usr/bin/qemu-system-s390x</emulator>
+    <controller type='pci' index='0' model='pci-root'/>
     <audio id='1' type='none'/>
     <hostdev mode='subsystem' type='mdev' managed='no' model='vfio-ccw'>
       <source>
similarity index 93%
rename from tests/qemuxml2xmloutdata/hostdev-vfio-zpci-autogenerate-fids.xml
rename to tests/qemuxml2xmloutdata/hostdev-vfio-zpci-autogenerate-fids.s390x-latest.xml
index cc3687db95186b6157838c9725f5633cfda7033f..dd1dea4e991fb4a3cd1c577cc1e2c7703f9d4393 100644 (file)
@@ -8,6 +8,9 @@
     <type arch='s390x' machine='s390-ccw-virtio'>hvm</type>
     <boot dev='hd'/>
   </os>
+  <cpu mode='custom' match='exact' check='none'>
+    <model fallback='forbid'>qemu</model>
+  </cpu>
   <clock offset='utc'/>
   <on_poweroff>destroy</on_poweroff>
   <on_reboot>restart</on_reboot>
similarity index 93%
rename from tests/qemuxml2xmloutdata/hostdev-vfio-zpci-autogenerate-uids.xml
rename to tests/qemuxml2xmloutdata/hostdev-vfio-zpci-autogenerate-uids.s390x-latest.xml
index 5b03616d1e90550a1f4c61189b4d7bd1ce8862e8..1a52487692ec104214505b51d345de549272a15b 100644 (file)
@@ -8,6 +8,9 @@
     <type arch='s390x' machine='s390-ccw-virtio'>hvm</type>
     <boot dev='hd'/>
   </os>
+  <cpu mode='custom' match='exact' check='none'>
+    <model fallback='forbid'>qemu</model>
+  </cpu>
   <clock offset='utc'/>
   <on_poweroff>destroy</on_poweroff>
   <on_reboot>restart</on_reboot>
similarity index 91%
rename from tests/qemuxml2xmloutdata/hostdev-vfio-zpci-autogenerate.xml
rename to tests/qemuxml2xmloutdata/hostdev-vfio-zpci-autogenerate.s390x-latest.xml
index acee69fd863b7ccde0d81be2accd9190c0c2d1d1..670f8c68b450cc805d17a2565ad727e90fcbdc06 100644 (file)
@@ -8,6 +8,9 @@
     <type arch='s390x' machine='s390-ccw-virtio'>hvm</type>
     <boot dev='hd'/>
   </os>
+  <cpu mode='custom' match='exact' check='none'>
+    <model fallback='forbid'>qemu</model>
+  </cpu>
   <clock offset='utc'/>
   <on_poweroff>destroy</on_poweroff>
   <on_reboot>restart</on_reboot>
similarity index 94%
rename from tests/qemuxml2xmloutdata/hostdev-vfio-zpci-boundaries.xml
rename to tests/qemuxml2xmloutdata/hostdev-vfio-zpci-boundaries.s390x-latest.xml
index 09ee053c928be9a971f6cfa6104c10812950ed79..df55f7950190fffaa5a26d98a7ae470d5c8a9ecf 100644 (file)
@@ -8,6 +8,9 @@
     <type arch='s390x' machine='s390-ccw-virtio'>hvm</type>
     <boot dev='hd'/>
   </os>
+  <cpu mode='custom' match='exact' check='none'>
+    <model fallback='forbid'>qemu</model>
+  </cpu>
   <clock offset='utc'/>
   <on_poweroff>destroy</on_poweroff>
   <on_reboot>restart</on_reboot>
similarity index 96%
rename from tests/qemuxml2xmloutdata/hostdev-vfio-zpci-ccw-memballoon.xml
rename to tests/qemuxml2xmloutdata/hostdev-vfio-zpci-ccw-memballoon.s390x-latest.xml
index 276c9f3e69208931f97fd8bf5bbd0f849446e506..7df6491b6834aeb3d7fb9e3879485594406f94ca 100644 (file)
@@ -8,6 +8,7 @@
     <type arch='s390x' machine='s390-ccw-virtio'>hvm</type>
     <boot dev='hd'/>
   </os>
+  <cpu mode='host-model' check='partial'/>
   <clock offset='utc'/>
   <on_poweroff>destroy</on_poweroff>
   <on_reboot>restart</on_reboot>
similarity index 97%
rename from tests/qemuxml2xmloutdata/hostdev-vfio-zpci-multidomain-many.xml
rename to tests/qemuxml2xmloutdata/hostdev-vfio-zpci-multidomain-many.s390x-latest.xml
index 72bcf30b43a216cfc36ae2d1c4128bc78c7e06f2..e64d7de561d01147cb90cd08ef9a1a0213ec0a2f 100644 (file)
@@ -8,6 +8,9 @@
     <type arch='s390x' machine='s390-ccw-virtio'>hvm</type>
     <boot dev='hd'/>
   </os>
+  <cpu mode='custom' match='exact' check='none'>
+    <model fallback='forbid'>qemu</model>
+  </cpu>
   <clock offset='utc'/>
   <on_poweroff>destroy</on_poweroff>
   <on_reboot>restart</on_reboot>
similarity index 91%
rename from tests/qemuxml2xmloutdata/hostdev-vfio-zpci.xml
rename to tests/qemuxml2xmloutdata/hostdev-vfio-zpci.s390x-latest.xml
index 3b41c4e0c075d496941546e6b0364f4bf42dab83..5e14a6381002045bba36f793957069bd91e5a908 100644 (file)
@@ -8,6 +8,9 @@
     <type arch='s390x' machine='s390-ccw-virtio'>hvm</type>
     <boot dev='hd'/>
   </os>
+  <cpu mode='custom' match='exact' check='none'>
+    <model fallback='forbid'>qemu</model>
+  </cpu>
   <clock offset='utc'/>
   <on_poweroff>destroy</on_poweroff>
   <on_reboot>restart</on_reboot>
similarity index 89%
rename from tests/qemuxml2xmloutdata/input-virtio-ccw.xml
rename to tests/qemuxml2xmloutdata/input-virtio-ccw.s390x-latest.xml
index 3a4fcadda60522e7c4a4e4b636fb657c4f0e98ee..bca07c8fd82cf5cd2173727bfbe9b9a90639328a 100644 (file)
@@ -8,6 +8,9 @@
     <type arch='s390x' machine='s390-ccw-virtio'>hvm</type>
     <boot dev='hd'/>
   </os>
+  <cpu mode='custom' match='exact' check='none'>
+    <model fallback='forbid'>qemu</model>
+  </cpu>
   <clock offset='utc'/>
   <on_poweroff>destroy</on_poweroff>
   <on_reboot>restart</on_reboot>
@@ -20,6 +23,7 @@
       <target dev='hda' bus='virtio'/>
       <address type='ccw' cssid='0xfe' ssid='0x0' devno='0x0000'/>
     </disk>
+    <controller type='pci' index='0' model='pci-root'/>
     <input type='keyboard' bus='virtio'>
       <address type='ccw' cssid='0xfe' ssid='0x0' devno='0x0002'/>
     </input>
similarity index 91%
rename from tests/qemuxml2xmloutdata/machine-loadparm-multiple-disks-nets-s390.xml
rename to tests/qemuxml2xmloutdata/machine-loadparm-multiple-disks-nets-s390.s390x-latest.xml
index 3ea2c8c1c4cc6dea5c891691efcde5c8bf13dc2d..039968d7e47bdeb14f06e61155590fbd0fd5a677 100644 (file)
@@ -7,6 +7,9 @@
   <os>
     <type arch='s390x' machine='s390-ccw-virtio'>hvm</type>
   </os>
+  <cpu mode='custom' match='exact' check='none'>
+    <model fallback='forbid'>qemu</model>
+  </cpu>
   <clock offset='utc'/>
   <on_poweroff>destroy</on_poweroff>
   <on_reboot>restart</on_reboot>
@@ -27,6 +30,7 @@
       <boot order='3' loadparm='3'/>
       <address type='ccw' cssid='0xfe' ssid='0x0' devno='0x0003'/>
     </disk>
+    <controller type='pci' index='0' model='pci-root'/>
     <interface type='user'>
       <mac address='00:11:22:33:44:54'/>
       <model type='virtio'/>
similarity index 86%
rename from tests/qemuxml2xmloutdata/s390-panic-missing.xml
rename to tests/qemuxml2xmloutdata/s390-panic-missing.s390x-latest.xml
index 19298265410c8ecfa8b88aad2bcb68c2b41bc63d..b36c12e43584dbeee1e2ebad4621ad12ef254184 100644 (file)
@@ -8,6 +8,9 @@
     <type arch='s390x' machine='s390-ccw-virtio'>hvm</type>
     <boot dev='hd'/>
   </os>
+  <cpu mode='custom' match='exact' check='none'>
+    <model fallback='forbid'>qemu</model>
+  </cpu>
   <clock offset='utc'/>
   <on_poweroff>destroy</on_poweroff>
   <on_reboot>restart</on_reboot>
@@ -17,6 +20,7 @@
     <controller type='virtio-serial' index='0'>
       <address type='ccw' cssid='0xfe' ssid='0x0' devno='0x0000'/>
     </controller>
+    <controller type='pci' index='0' model='pci-root'/>
     <console type='pty'>
       <target type='virtio' port='0'/>
       <address type='ccw' cssid='0xfe' ssid='0x0' devno='0x0001'/>
similarity index 85%
rename from tests/qemuxml2xmloutdata/s390-panic-no-address.xml
rename to tests/qemuxml2xmloutdata/s390-panic-no-address.s390x-latest.xml
index 1610eacdef3e35a210d56901814f4fe3638b6a19..9b9fbf32436e2d3a6ae7dc94a463847aedd2190b 100644 (file)
@@ -8,6 +8,9 @@
     <type arch='s390x' machine='s390-ccw-virtio'>hvm</type>
     <boot dev='hd'/>
   </os>
+  <cpu mode='custom' match='exact' check='none'>
+    <model fallback='forbid'>qemu</model>
+  </cpu>
   <clock offset='utc'/>
   <on_poweroff>destroy</on_poweroff>
   <on_reboot>restart</on_reboot>
@@ -17,6 +20,7 @@
     <controller type='virtio-serial' index='0'>
       <address type='ccw' cssid='0xfe' ssid='0x0' devno='0x0000'/>
     </controller>
+    <controller type='pci' index='0' model='pci-root'/>
     <console type='pty'>
       <target type='virtio' port='0'/>
     </console>
similarity index 90%
rename from tests/qemuxml2xmloutdata/s390-panic.xml
rename to tests/qemuxml2xmloutdata/s390-panic.s390x-latest.xml
index 1c31685fb58543f45355f6be4c01f453569de916..2f27890ceb6b714bc9e2537073265ae02444fcee 100644 (file)
@@ -8,6 +8,7 @@
     <type arch='s390x' machine='s390-ccw-virtio'>hvm</type>
     <boot dev='hd'/>
   </os>
+  <cpu mode='host-model' check='partial'/>
   <clock offset='utc'/>
   <on_poweroff>destroy</on_poweroff>
   <on_reboot>restart</on_reboot>
@@ -17,6 +18,7 @@
     <controller type='virtio-serial' index='0'>
       <address type='ccw' cssid='0xfe' ssid='0x0' devno='0x0000'/>
     </controller>
+    <controller type='pci' index='0' model='pci-root'/>
     <console type='pty'>
       <target type='virtio' port='0'/>
     </console>
similarity index 86%
rename from tests/qemuxml2xmloutdata/s390-serial-2.xml
rename to tests/qemuxml2xmloutdata/s390-serial-2.s390x-latest.xml
index 2ca82ecf03d1e95d2efee444c4c84097aceaf851..bf67ed8c12b1c17c744cad875a3196e7cf012d98 100644 (file)
@@ -8,12 +8,16 @@
     <type arch='s390x' machine='s390-ccw-virtio'>hvm</type>
     <boot dev='hd'/>
   </os>
+  <cpu mode='custom' match='exact' check='none'>
+    <model fallback='forbid'>qemu</model>
+  </cpu>
   <clock offset='utc'/>
   <on_poweroff>destroy</on_poweroff>
   <on_reboot>restart</on_reboot>
   <on_crash>destroy</on_crash>
   <devices>
     <emulator>/usr/bin/qemu-system-s390x</emulator>
+    <controller type='pci' index='0' model='pci-root'/>
     <serial type='pty'>
       <target type='sclp-serial' port='0'>
         <model name='sclpconsole'/>
similarity index 84%
rename from tests/qemuxml2xmloutdata/s390-serial.xml
rename to tests/qemuxml2xmloutdata/s390-serial-console.s390x-latest.xml
index f29565f5c229b36b73835125d6f651091537718f..9ce55598bc48b590529acb0a97d3d1842d91df39 100644 (file)
@@ -8,12 +8,16 @@
     <type arch='s390x' machine='s390-ccw-virtio'>hvm</type>
     <boot dev='hd'/>
   </os>
+  <cpu mode='custom' match='exact' check='none'>
+    <model fallback='forbid'>qemu</model>
+  </cpu>
   <clock offset='utc'/>
   <on_poweroff>destroy</on_poweroff>
   <on_reboot>restart</on_reboot>
   <on_crash>destroy</on_crash>
   <devices>
     <emulator>/usr/bin/qemu-system-s390x</emulator>
+    <controller type='pci' index='0' model='pci-root'/>
     <serial type='pty'>
       <target type='sclp-serial' port='0'>
         <model name='sclpconsole'/>
similarity index 84%
rename from tests/qemuxml2xmloutdata/s390-serial-console.xml
rename to tests/qemuxml2xmloutdata/s390-serial.s390x-latest.xml
index f29565f5c229b36b73835125d6f651091537718f..9ce55598bc48b590529acb0a97d3d1842d91df39 100644 (file)
@@ -8,12 +8,16 @@
     <type arch='s390x' machine='s390-ccw-virtio'>hvm</type>
     <boot dev='hd'/>
   </os>
+  <cpu mode='custom' match='exact' check='none'>
+    <model fallback='forbid'>qemu</model>
+  </cpu>
   <clock offset='utc'/>
   <on_poweroff>destroy</on_poweroff>
   <on_reboot>restart</on_reboot>
   <on_crash>destroy</on_crash>
   <devices>
     <emulator>/usr/bin/qemu-system-s390x</emulator>
+    <controller type='pci' index='0' model='pci-root'/>
     <serial type='pty'>
       <target type='sclp-serial' port='0'>
         <model name='sclpconsole'/>
similarity index 87%
rename from tests/qemuxml2xmloutdata/vhost-vsock-ccw-auto.xml
rename to tests/qemuxml2xmloutdata/vhost-vsock-ccw-auto.s390x-latest.xml
index e2111dc73876c88b4d615422107086f6e936cd79..c384522a42a2e676577cccc23e15c0e86384627c 100644 (file)
@@ -8,6 +8,9 @@
     <type arch='s390x' machine='s390-ccw-virtio'>hvm</type>
     <boot dev='hd'/>
   </os>
+  <cpu mode='custom' match='exact' check='none'>
+    <model fallback='forbid'>qemu</model>
+  </cpu>
   <clock offset='utc'/>
   <on_poweroff>destroy</on_poweroff>
   <on_reboot>restart</on_reboot>
@@ -20,6 +23,7 @@
       <target dev='hda' bus='virtio'/>
       <address type='ccw' cssid='0xfe' ssid='0x0' devno='0x0000'/>
     </disk>
+    <controller type='pci' index='0' model='pci-root'/>
     <audio id='1' type='none'/>
     <memballoon model='virtio'>
       <address type='ccw' cssid='0xfe' ssid='0x0' devno='0x0001'/>
diff --git a/tests/qemuxml2xmloutdata/vhost-vsock-ccw.s390x-latest.xml b/tests/qemuxml2xmloutdata/vhost-vsock-ccw.s390x-latest.xml
new file mode 100644 (file)
index 0000000..d519028
--- /dev/null
@@ -0,0 +1,37 @@
+<domain type='qemu'>
+  <name>QEMUGuest1</name>
+  <uuid>c7a5fdbd-edaf-9455-926a-d65c16db1809</uuid>
+  <memory unit='KiB'>219136</memory>
+  <currentMemory unit='KiB'>219136</currentMemory>
+  <vcpu placement='static'>1</vcpu>
+  <os>
+    <type arch='s390x' machine='s390-ccw-virtio'>hvm</type>
+    <boot dev='hd'/>
+  </os>
+  <cpu mode='custom' match='exact' check='none'>
+    <model fallback='forbid'>qemu</model>
+  </cpu>
+  <clock offset='utc'/>
+  <on_poweroff>destroy</on_poweroff>
+  <on_reboot>restart</on_reboot>
+  <on_crash>destroy</on_crash>
+  <devices>
+    <emulator>/usr/bin/qemu-system-s390x</emulator>
+    <disk type='block' device='disk'>
+      <driver name='qemu' type='raw'/>
+      <source dev='/dev/HostVG/QEMUGuest1'/>
+      <target dev='hda' bus='virtio'/>
+      <address type='ccw' cssid='0xfe' ssid='0x0' devno='0x0000'/>
+    </disk>
+    <controller type='pci' index='0' model='pci-root'/>
+    <audio id='1' type='none'/>
+    <memballoon model='virtio'>
+      <address type='ccw' cssid='0xfe' ssid='0x0' devno='0x0001'/>
+    </memballoon>
+    <panic model='s390'/>
+    <vsock model='virtio'>
+      <cid auto='no' address='4'/>
+      <address type='ccw' cssid='0xfe' ssid='0x0' devno='0x0003'/>
+    </vsock>
+  </devices>
+</domain>
diff --git a/tests/qemuxml2xmloutdata/vhost-vsock-ccw.xml b/tests/qemuxml2xmloutdata/vhost-vsock-ccw.xml
deleted file mode 120000 (symlink)
index e0fa69d..0000000
+++ /dev/null
@@ -1 +0,0 @@
-../qemuxml2argvdata/vhost-vsock-ccw.xml
\ No newline at end of file
similarity index 88%
rename from tests/qemuxml2xmloutdata/video-virtio-gpu-ccw-auto.xml
rename to tests/qemuxml2xmloutdata/video-virtio-gpu-ccw-auto.s390x-latest.xml
index 47c70a9301bb33e4b28698efa0361c4eb9959beb..87ee9eee543ad08faa3f6e9a9ff8d6daeea19c9c 100644 (file)
@@ -8,6 +8,9 @@
     <type arch='s390x' machine='s390-ccw-virtio'>hvm</type>
     <boot dev='hd'/>
   </os>
+  <cpu mode='custom' match='exact' check='none'>
+    <model fallback='forbid'>qemu</model>
+  </cpu>
   <clock offset='utc'/>
   <on_poweroff>destroy</on_poweroff>
   <on_reboot>restart</on_reboot>
@@ -20,6 +23,7 @@
       <target dev='hda' bus='virtio'/>
       <address type='ccw' cssid='0xfe' ssid='0x0' devno='0x0000'/>
     </disk>
+    <controller type='pci' index='0' model='pci-root'/>
     <graphics type='vnc' port='-1' autoport='yes'>
       <listen type='address'/>
     </graphics>
similarity index 89%
rename from tests/qemuxml2xmloutdata/video-virtio-gpu-ccw.xml
rename to tests/qemuxml2xmloutdata/video-virtio-gpu-ccw.s390x-latest.xml
index ccc58a4a5d1b0f851b8df20ac30a64d38cf1d143..9b6bf6c9800c86bed4ff19aa68d1398c6ea6d34e 100644 (file)
@@ -8,6 +8,9 @@
     <type arch='s390x' machine='s390-ccw-virtio'>hvm</type>
     <boot dev='hd'/>
   </os>
+  <cpu mode='custom' match='exact' check='none'>
+    <model fallback='forbid'>qemu</model>
+  </cpu>
   <clock offset='utc'/>
   <on_poweroff>destroy</on_poweroff>
   <on_reboot>restart</on_reboot>
@@ -20,6 +23,7 @@
       <target dev='hda' bus='virtio'/>
       <address type='ccw' cssid='0xfe' ssid='0x0' devno='0x0000'/>
     </disk>
+    <controller type='pci' index='0' model='pci-root'/>
     <graphics type='vnc' port='-1' autoport='yes'>
       <listen type='address'/>
     </graphics>
index 60ff48550f0bd11b737a93d445caaf838cac140c..a8a6cd6ca752334a69ae866335c944734696f0b4 100644 (file)
@@ -208,7 +208,7 @@ mymain(void)
     DO_TEST_CAPS_LATEST("machine-smm-on");
     DO_TEST_CAPS_LATEST("machine-smm-off");
     DO_TEST_CAPS_ARCH_LATEST("machine-loadparm-hostdev", "s390x");
-    DO_TEST_NOCAPS("machine-loadparm-multiple-disks-nets-s390");
+    DO_TEST_CAPS_ARCH_LATEST("machine-loadparm-multiple-disks-nets-s390", "s390x");
     DO_TEST_NOCAPS("default-kvm-host-arch");
     DO_TEST_NOCAPS("default-qemu-host-arch");
     DO_TEST_NOCAPS("boot-cdrom");
@@ -323,8 +323,7 @@ mymain(void)
             QEMU_CAPS_PR_MANAGER_HELPER,
             QEMU_CAPS_SCSI_BLOCK);
     DO_TEST("controller-virtio-scsi", QEMU_CAPS_VIRTIO_SCSI);
-    DO_TEST("disk-virtio-s390-zpci",
-            QEMU_CAPS_DEVICE_ZPCI);
+    DO_TEST_CAPS_ARCH_LATEST("disk-virtio-s390-zpci", "s390x");
     DO_TEST_NOCAPS("disk-mirror-old");
     DO_TEST_NOCAPS("disk-mirror");
     DO_TEST_NOCAPS("disk-active-commit");
@@ -492,29 +491,13 @@ mymain(void)
     DO_TEST("hostdev-pci-address-unassigned", QEMU_CAPS_DEVICE_VFIO_PCI);
     DO_TEST("hostdev-pci-multifunction", QEMU_CAPS_DEVICE_VFIO_PCI);
     DO_TEST("hostdev-vfio", QEMU_CAPS_DEVICE_VFIO_PCI);
-    DO_TEST("hostdev-vfio-zpci",
-            QEMU_CAPS_DEVICE_VFIO_PCI,
-            QEMU_CAPS_DEVICE_ZPCI);
-    DO_TEST("hostdev-vfio-zpci-multidomain-many",
-            QEMU_CAPS_DEVICE_VFIO_PCI,
-            QEMU_CAPS_DEVICE_PCI_BRIDGE,
-            QEMU_CAPS_DEVICE_ZPCI);
-    DO_TEST("hostdev-vfio-zpci-autogenerate",
-            QEMU_CAPS_DEVICE_VFIO_PCI,
-            QEMU_CAPS_DEVICE_ZPCI);
-    DO_TEST("hostdev-vfio-zpci-autogenerate-uids",
-            QEMU_CAPS_DEVICE_VFIO_PCI,
-            QEMU_CAPS_DEVICE_ZPCI);
-    DO_TEST("hostdev-vfio-zpci-autogenerate-fids",
-            QEMU_CAPS_DEVICE_VFIO_PCI,
-            QEMU_CAPS_DEVICE_ZPCI);
-    DO_TEST("hostdev-vfio-zpci-boundaries",
-            QEMU_CAPS_DEVICE_VFIO_PCI,
-            QEMU_CAPS_DEVICE_PCI_BRIDGE,
-            QEMU_CAPS_DEVICE_ZPCI);
-    DO_TEST("hostdev-vfio-zpci-ccw-memballoon",
-            QEMU_CAPS_DEVICE_VFIO_PCI,
-            QEMU_CAPS_DEVICE_ZPCI);
+    DO_TEST_CAPS_ARCH_LATEST("hostdev-vfio-zpci", "s390x");
+    DO_TEST_CAPS_ARCH_LATEST("hostdev-vfio-zpci-multidomain-many", "s390x");
+    DO_TEST_CAPS_ARCH_LATEST("hostdev-vfio-zpci-autogenerate", "s390x");
+    DO_TEST_CAPS_ARCH_LATEST("hostdev-vfio-zpci-autogenerate-uids", "s390x");
+    DO_TEST_CAPS_ARCH_LATEST("hostdev-vfio-zpci-autogenerate-fids", "s390x");
+    DO_TEST_CAPS_ARCH_LATEST("hostdev-vfio-zpci-boundaries", "s390x");
+    DO_TEST_CAPS_ARCH_LATEST("hostdev-vfio-zpci-ccw-memballoon", "s390x");
     DO_TEST("hostdev-mdev-precreated", QEMU_CAPS_DEVICE_VFIO_PCI);
     DO_TEST("hostdev-mdev-display",
             QEMU_CAPS_DEVICE_QXL,
@@ -814,8 +797,7 @@ mymain(void)
             QEMU_CAPS_DEVICE_IOH3420,
             QEMU_CAPS_HDA_DUPLEX);
 
-    DO_TEST("hostdev-scsi-vhost-scsi-ccw",
-            QEMU_CAPS_VIRTIO_SCSI, QEMU_CAPS_DEVICE_VHOST_SCSI);
+    DO_TEST_CAPS_ARCH_LATEST("hostdev-scsi-vhost-scsi-ccw", "s390x");
     DO_TEST("hostdev-scsi-vhost-scsi-pci",
             QEMU_CAPS_VIRTIO_SCSI,
             QEMU_CAPS_DEVICE_VHOST_SCSI);
@@ -838,20 +820,17 @@ mymain(void)
             QEMU_CAPS_VIRTIO_SCSI,
             QEMU_CAPS_SCSI_LSI);
 
-    DO_TEST("hostdev-subsys-mdev-vfio-ccw",
-            QEMU_CAPS_DEVICE_VFIO_CCW);
-    DO_TEST_CAPS_ARCH_LATEST("hostdev-subsys-mdev-vfio-ccw-boot",
-                             "s390x");
-    DO_TEST("hostdev-subsys-mdev-vfio-ap",
-            QEMU_CAPS_DEVICE_VFIO_AP);
+    DO_TEST_CAPS_ARCH_LATEST("hostdev-subsys-mdev-vfio-ccw", "s390x");
+    DO_TEST_CAPS_ARCH_LATEST("hostdev-subsys-mdev-vfio-ccw-boot", "s390x");
+    DO_TEST_CAPS_ARCH_LATEST("hostdev-subsys-mdev-vfio-ap", "s390x");
 
     DO_TEST_CAPS_ARCH_LATEST("s390-defaultconsole", "s390x");
-    DO_TEST_NOCAPS("s390-panic");
-    DO_TEST_NOCAPS("s390-panic-missing");
-    DO_TEST_NOCAPS("s390-panic-no-address");
-    DO_TEST_NOCAPS("s390-serial");
-    DO_TEST_NOCAPS("s390-serial-2");
-    DO_TEST_NOCAPS("s390-serial-console");
+    DO_TEST_CAPS_ARCH_LATEST("s390-panic", "s390x");
+    DO_TEST_CAPS_ARCH_LATEST("s390-panic-missing", "s390x");
+    DO_TEST_CAPS_ARCH_LATEST("s390-panic-no-address", "s390x");
+    DO_TEST_CAPS_ARCH_LATEST("s390-serial", "s390x");
+    DO_TEST_CAPS_ARCH_LATEST("s390-serial-2", "s390x");
+    DO_TEST_CAPS_ARCH_LATEST("s390-serial-console", "s390x");
 
     DO_TEST_NOCAPS("pcihole64");
     DO_TEST_NOCAPS("pcihole64-gib");
@@ -1085,14 +1064,8 @@ mymain(void)
     DO_TEST("video-qxl-noheads", QEMU_CAPS_DEVICE_QXL);
     DO_TEST("video-qxl-resolution", QEMU_CAPS_DEVICE_QXL);
     DO_TEST("video-virtio-gpu-secondary", QEMU_CAPS_DEVICE_VIRTIO_GPU);
-    DO_TEST("video-virtio-gpu-ccw",
-            QEMU_CAPS_DEVICE_VIRTIO_GPU,
-            QEMU_CAPS_VNC,
-            QEMU_CAPS_DEVICE_VIRTIO_GPU_CCW);
-    DO_TEST("video-virtio-gpu-ccw-auto",
-            QEMU_CAPS_DEVICE_VIRTIO_GPU,
-            QEMU_CAPS_VNC,
-            QEMU_CAPS_DEVICE_VIRTIO_GPU_CCW);
+    DO_TEST_CAPS_ARCH_LATEST("video-virtio-gpu-ccw", "s390x");
+    DO_TEST_CAPS_ARCH_LATEST("video-virtio-gpu-ccw-auto", "s390x");
     DO_TEST("video-none-device", QEMU_CAPS_VNC);
     DO_TEST_CAPS_LATEST("video-virtio-vga-gpu-gl");
     DO_TEST_CAPS_LATEST("video-virtio-blob-on");
@@ -1133,20 +1106,14 @@ mymain(void)
     DO_TEST_CAPS_ARCH_LATEST("pseries-cpu-exact", "ppc64");
 
     DO_TEST_CAPS_LATEST("user-aliases");
-    DO_TEST("input-virtio-ccw",
-            QEMU_CAPS_VIRTIO_KEYBOARD,
-            QEMU_CAPS_VIRTIO_MOUSE,
-            QEMU_CAPS_VIRTIO_TABLET,
-            QEMU_CAPS_DEVICE_VIRTIO_KEYBOARD_CCW,
-            QEMU_CAPS_DEVICE_VIRTIO_MOUSE_CCW,
-            QEMU_CAPS_DEVICE_VIRTIO_TABLET_CCW);
+    DO_TEST_CAPS_ARCH_LATEST("input-virtio-ccw", "s390x");
 
     DO_TEST_CAPS_LATEST("tseg-explicit-size");
 
     DO_TEST_CAPS_LATEST("vhost-vsock");
     DO_TEST_CAPS_LATEST("vhost-vsock-auto");
-    DO_TEST("vhost-vsock-ccw", QEMU_CAPS_DEVICE_VHOST_VSOCK);
-    DO_TEST("vhost-vsock-ccw-auto", QEMU_CAPS_DEVICE_VHOST_VSOCK);
+    DO_TEST_CAPS_ARCH_LATEST("vhost-vsock-ccw", "s390x");
+    DO_TEST_CAPS_ARCH_LATEST("vhost-vsock-ccw-auto", "s390x");
     DO_TEST_CAPS_ARCH_LATEST("vhost-vsock-ccw-iommu", "s390x");