]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemuxml2argvtest: Add device with 'ramfb=off' to 'hostdev-mdev-display-ramfb'
authorPeter Krempa <pkrempa@redhat.com>
Thu, 18 Nov 2021 08:25:29 +0000 (09:25 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 19 Nov 2021 11:40:41 +0000 (12:40 +0100)
Add a test case where 'ramfb' is explicitly disabled for a mediated
device to prevent regressing again.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
tests/qemuxml2argvdata/hostdev-mdev-display-ramfb.x86_64-latest.args
tests/qemuxml2argvdata/hostdev-mdev-display-ramfb.xml
tests/qemuxml2xmloutdata/hostdev-mdev-display-ramfb.x86_64-latest.xml

index 7ab67b3029a85f4bc947194677aa8c5069851f87..31ba83f0da5695daafe843298b2beb3c467b9168 100644 (file)
@@ -30,5 +30,6 @@ XDG_CONFIG_HOME=/tmp/lib/domain--1-QEMUGuest2/.config \
 -vnc 127.0.0.1:0,audiodev=audio1 \
 -device '{"driver":"qxl-vga","id":"video0","ram_size":67108864,"vram_size":67108864,"vram64_size_mb":0,"vgamem_mb":16,"max_outputs":1,"bus":"pci.0","addr":"0x2"}' \
 -device '{"driver":"vfio-pci-nohotplug","id":"hostdev0","sysfsdev":"/sys/bus/mdev/devices/53764d0e-85a0-42b4-af5c-2046b460b1dc","display":"on","ramfb":true,"bus":"pci.0","addr":"0x3"}' \
+-device '{"driver":"vfio-pci","id":"hostdev1","sysfsdev":"/sys/bus/mdev/devices/53764d0e-85a0-42b4-af5c-2046b460b1dd","display":"on","bus":"pci.0","addr":"0x4"}' \
 -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,resourcecontrol=deny \
 -msg timestamp=on
index 6fdc477ca23163fe734f9452a248015580585598..a494c59f9dce5c0927873d3fa93ab42158a01e85 100644 (file)
         <address uuid='53764d0e-85a0-42b4-af5c-2046b460b1dc'/>
       </source>
     </hostdev>
+    <hostdev mode='subsystem' type='mdev' model='vfio-pci' display='on' ramfb='off'>
+      <source>
+        <address uuid='53764d0e-85a0-42b4-af5c-2046b460b1dd'/>
+      </source>
+    </hostdev>
     <video>
       <model type='qxl' heads='1'/>
     </video>
index a60317d8111f975e27fc8ebc83153075dc70a3a8..a137bd387ef7818a1b355130fc1ad8b0fcc2cf0f 100644 (file)
       </source>
       <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
     </hostdev>
+    <hostdev mode='subsystem' type='mdev' managed='no' model='vfio-pci' display='on' ramfb='off'>
+      <source>
+        <address uuid='53764d0e-85a0-42b4-af5c-2046b460b1dd'/>
+      </source>
+      <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
+    </hostdev>
     <memballoon model='none'/>
   </devices>
 </domain>