]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemuxml2xmltest: Use same parameters as in qemuxml2argvtest for 'riscv64-virt'
authorPeter Krempa <pkrempa@redhat.com>
Sat, 16 Dec 2023 18:59:15 +0000 (19:59 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 17 Jan 2024 15:38:51 +0000 (16:38 +0100)
The main idea of the test is to validate config when PCIe is compiled
out.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
tests/qemuxml2xmloutdata/riscv64-virt.riscv64-latest.xml
tests/qemuxml2xmltest.c

index 9868f3ae1245a9e1405919d3bc4aea601b8a8bd4..8a5c5dd985286ea1c66af1bec31c616d9782bd5c 100644 (file)
       <driver name='qemu' type='raw'/>
       <source file='/var/lib/libvirt/images/stage4-disk.img'/>
       <target dev='vda' bus='virtio'/>
-      <address type='pci' domain='0x0000' bus='0x01' slot='0x00' function='0x0'/>
+      <address type='virtio-mmio'/>
     </disk>
-    <controller type='pci' index='0' model='pcie-root'/>
-    <controller type='pci' index='1' model='pcie-root-port'>
-      <model name='pcie-root-port'/>
-      <target chassis='1' port='0x8'/>
-      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x0' multifunction='on'/>
-    </controller>
-    <controller type='pci' index='2' model='pcie-root-port'>
-      <model name='pcie-root-port'/>
-      <target chassis='2' port='0x9'/>
-      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
-    </controller>
-    <controller type='pci' index='3' model='pcie-root-port'>
-      <model name='pcie-root-port'/>
-      <target chassis='3' port='0xa'/>
-      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/>
-    </controller>
     <serial type='pty'>
       <target type='system-serial' port='0'>
         <model name='16550a'/>
@@ -48,7 +32,7 @@
     </console>
     <audio id='1' type='none'/>
     <memballoon model='virtio'>
-      <address type='pci' domain='0x0000' bus='0x02' slot='0x00' function='0x0'/>
+      <address type='virtio-mmio'/>
     </memballoon>
   </devices>
 </domain>
index 58e5383b5cee864629f59f3adb5f59ba677b44d8..5ec91e192c6f3f86544a509cc6d0f683a544dd14 100644 (file)
@@ -904,7 +904,10 @@ mymain(void)
     DO_TEST_CAPS_LATEST("vhost-user-fs-hugepages");
     DO_TEST_CAPS_LATEST("vhost-user-fs-sock");
 
-    DO_TEST_CAPS_ARCH_LATEST("riscv64-virt", "riscv64");
+    DO_TEST_CAPS_ARCH_LATEST_FULL("riscv64-virt", "riscv64",
+                                  ARG_QEMU_CAPS_DEL,
+                                  QEMU_CAPS_OBJECT_GPEX,
+                                  QEMU_CAPS_LAST);
     DO_TEST_CAPS_ARCH_LATEST("riscv64-virt-pci", "riscv64");
 
     DO_TEST_CAPS_LATEST("x86-kvm-32-on-64");