]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemuxmlconftest: Include shared memory 'net-vhostuser' test cases
authorPeter Krempa <pkrempa@redhat.com>
Tue, 11 Mar 2025 08:01:03 +0000 (09:01 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 12 Mar 2025 11:56:58 +0000 (12:56 +0100)
The vhost-user protocol requires shared memory support to work properly.

Our test XMLs didn't have it configured as for interface the check if
shared memory is present only produces a warning instead of a proper
error.

Upcoming patches will be moving the check to become fatal so the test
cases need to be fixed first.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
tests/qemuxmlconfdata/net-vhostuser-fail.x86_64-latest.xml
tests/qemuxmlconfdata/net-vhostuser-fail.xml
tests/qemuxmlconfdata/net-vhostuser-multiq.x86_64-latest.args
tests/qemuxmlconfdata/net-vhostuser-multiq.x86_64-latest.xml
tests/qemuxmlconfdata/net-vhostuser-multiq.xml
tests/qemuxmlconfdata/net-vhostuser.x86_64-latest.args
tests/qemuxmlconfdata/net-vhostuser.x86_64-latest.xml
tests/qemuxmlconfdata/net-vhostuser.xml

index 60e591001dcadb2065e7349cff396c1820b5c119..ce1ebf9462a6ba28d550345a4c9e5951ace7c409 100644 (file)
@@ -3,6 +3,9 @@
   <uuid>c7a5fdbd-edaf-9455-926a-d65c16db1809</uuid>
   <memory unit='KiB'>219136</memory>
   <currentMemory unit='KiB'>219136</currentMemory>
+  <memoryBacking>
+    <access mode='shared'/>
+  </memoryBacking>
   <vcpu placement='static'>1</vcpu>
   <os>
     <type arch='x86_64' machine='pc'>hvm</type>
index d50589af6f9a00a48429c2de5aba2a40eadecdf4..b6b0b977d5eefa58a910c8510aab8191ddf9cd7f 100644 (file)
@@ -3,6 +3,9 @@
   <uuid>c7a5fdbd-edaf-9455-926a-d65c16db1809</uuid>
   <memory unit='KiB'>219136</memory>
   <currentMemory unit='KiB'>219136</currentMemory>
+  <memoryBacking>
+    <access mode='shared'/>
+  </memoryBacking>
   <vcpu placement='static'>1</vcpu>
   <os>
     <type arch='x86_64' machine='pc'>hvm</type>
index 922758a034dbcdd2667923e486102bfaf01ab9fe..4ea3d4eebdd16d875777f7a8bb159ced1746ad1e 100644 (file)
@@ -14,7 +14,7 @@ XDG_CONFIG_HOME=/var/lib/libvirt/qemu/domain--1-QEMUGuest1/.config \
 -accel tcg \
 -cpu qemu64 \
 -m size=219136k \
--object '{"qom-type":"memory-backend-ram","id":"pc.ram","size":224395264}' \
+-object '{"qom-type":"memory-backend-file","id":"pc.ram","mem-path":"/var/lib/libvirt/qemu/ram/-1-QEMUGuest1/pc.ram","share":true,"x-use-canonical-path-for-ramblock-id":false,"size":224395264}' \
 -overcommit mem-lock=off \
 -smp 1,sockets=1,cores=1,threads=1 \
 -uuid c7a5fdbd-edaf-9455-926a-d65c16db1809 \
index 5c2cf70a4b24e78255180438089afcc288dc65f5..93524c286484d4f55e36e518e2bcc71cba11f24b 100644 (file)
@@ -3,6 +3,9 @@
   <uuid>c7a5fdbd-edaf-9455-926a-d65c16db1809</uuid>
   <memory unit='KiB'>219136</memory>
   <currentMemory unit='KiB'>219136</currentMemory>
+  <memoryBacking>
+    <access mode='shared'/>
+  </memoryBacking>
   <vcpu placement='static'>1</vcpu>
   <os>
     <type arch='x86_64' machine='pc'>hvm</type>
index ed492ea41ae695d8340394b822ca5e77cd1cd2cd..fa324c9d1706fa049c1c02fa8c8d4bb36ebd7bc6 100644 (file)
@@ -3,6 +3,9 @@
   <uuid>c7a5fdbd-edaf-9455-926a-d65c16db1809</uuid>
   <memory unit='KiB'>219136</memory>
   <currentMemory unit='KiB'>219136</currentMemory>
+  <memoryBacking>
+    <access mode='shared'/>
+  </memoryBacking>
   <vcpu placement='static'>1</vcpu>
   <os>
     <type arch='x86_64' machine='pc'>hvm</type>
index bc1de8c8ede0618241e511ccc5e394183dbaa559..f5925c77fe6aeb7098d6ca2aab57f73df339c325 100644 (file)
@@ -14,7 +14,7 @@ XDG_CONFIG_HOME=/var/lib/libvirt/qemu/domain--1-QEMUGuest1/.config \
 -accel tcg \
 -cpu qemu64 \
 -m size=219136k \
--object '{"qom-type":"memory-backend-ram","id":"pc.ram","size":224395264}' \
+-object '{"qom-type":"memory-backend-file","id":"pc.ram","mem-path":"/var/lib/libvirt/qemu/ram/-1-QEMUGuest1/pc.ram","share":true,"x-use-canonical-path-for-ramblock-id":false,"size":224395264}' \
 -overcommit mem-lock=off \
 -smp 1,sockets=1,cores=1,threads=1 \
 -uuid c7a5fdbd-edaf-9455-926a-d65c16db1809 \
index c77d46147e876d6fa6bf6b1dad7cabfc28c71651..44bebef2c8376b001d4531ba25a54aafaa9c0c65 100644 (file)
@@ -3,6 +3,9 @@
   <uuid>c7a5fdbd-edaf-9455-926a-d65c16db1809</uuid>
   <memory unit='KiB'>219136</memory>
   <currentMemory unit='KiB'>219136</currentMemory>
+  <memoryBacking>
+    <access mode='shared'/>
+  </memoryBacking>
   <vcpu placement='static'>1</vcpu>
   <os>
     <type arch='x86_64' machine='pc'>hvm</type>
index e55a30a54f7930fc47bcdb436a0534988827b835..91d1abc027d19a9eb9946c276f90a674af252346 100644 (file)
@@ -3,6 +3,9 @@
   <uuid>c7a5fdbd-edaf-9455-926a-d65c16db1809</uuid>
   <memory unit='KiB'>219136</memory>
   <currentMemory unit='KiB'>219136</currentMemory>
+  <memoryBacking>
+    <access mode='shared'/>
+  </memoryBacking>
   <vcpu placement='static'>1</vcpu>
   <os>
     <type arch='x86_64' machine='pc'>hvm</type>