From: Peter Krempa <[email protected]>

Signed-off-by: Peter Krempa <[email protected]>
---
 tests/qemuxmlconfdata/fs9p.x86_64-latest.args | 2 ++
 tests/qemuxmlconfdata/fs9p.x86_64-latest.xml  | 7 +++++++
 tests/qemuxmlconfdata/fs9p.xml                | 6 ++++++
 3 files changed, 15 insertions(+)

diff --git a/tests/qemuxmlconfdata/fs9p.x86_64-latest.args 
b/tests/qemuxmlconfdata/fs9p.x86_64-latest.args
index ece83b6b24..d1505cce80 100644
--- a/tests/qemuxmlconfdata/fs9p.x86_64-latest.args
+++ b/tests/qemuxmlconfdata/fs9p.x86_64-latest.args
@@ -30,6 +30,8 @@ 
XDG_CONFIG_HOME=/var/lib/libvirt/qemu/domain--1-QEMUGuest1/.config \
 -device 
'{"driver":"virtio-9p-pci","id":"fs0","fsdev":"fsdev-fs0","mount_tag":"/import/from/host","bus":"pci.0","addr":"0x2"}'
 \
 -fsdev 
local,security_model=mapped,writeout=immediate,id=fsdev-fs1,path=/export/to/guest2
 \
 -device 
'{"driver":"virtio-9p-pci","id":"fs1","fsdev":"fsdev-fs1","mount_tag":"/import/from/host2","bus":"pci.0","addr":"0x3"}'
 \
+-fsdev 
local,security_model=mapped,id=fsdev-fs2,path=/export/to/guest-ro,readonly=on \
+-device 
'{"driver":"virtio-9p-pci","id":"fs2","fsdev":"fsdev-fs2","mount_tag":"/import/from/host-ro","bus":"pci.0","addr":"0x4"}'
 \
 -audiodev '{"id":"audio1","driver":"none"}' \
 -sandbox 
on,obsolete=deny,elevateprivileges=deny,spawn=deny,resourcecontrol=deny \
 -msg timestamp=on
diff --git a/tests/qemuxmlconfdata/fs9p.x86_64-latest.xml 
b/tests/qemuxmlconfdata/fs9p.x86_64-latest.xml
index 91cb445c9f..f313247eab 100644
--- a/tests/qemuxmlconfdata/fs9p.x86_64-latest.xml
+++ b/tests/qemuxmlconfdata/fs9p.x86_64-latest.xml
@@ -30,6 +30,13 @@
       <target dir='/import/from/host2'/>
       <address type='pci' domain='0x0000' bus='0x00' slot='0x03' 
function='0x0'/>
     </filesystem>
+    <filesystem type='mount' accessmode='mapped'>
+      <driver type='path'/>
+      <source dir='/export/to/guest-ro'/>
+      <target dir='/import/from/host-ro'/>
+      <readonly/>
+      <address type='pci' domain='0x0000' bus='0x00' slot='0x04' 
function='0x0'/>
+    </filesystem>
     <input type='mouse' bus='ps2'/>
     <input type='keyboard' bus='ps2'/>
     <audio id='1' type='none'/>
diff --git a/tests/qemuxmlconfdata/fs9p.xml b/tests/qemuxmlconfdata/fs9p.xml
index b7475c9f94..c82039a9e4 100644
--- a/tests/qemuxmlconfdata/fs9p.xml
+++ b/tests/qemuxmlconfdata/fs9p.xml
@@ -24,6 +24,12 @@
       <source dir='/export/to/guest2'/>
       <target dir='/import/from/host2'/>
     </filesystem>
+    <filesystem accessmode='mapped'>
+      <driver type='path'/>
+      <source dir='/export/to/guest-ro'/>
+      <target dir='/import/from/host-ro'/>
+      <readonly/>
+    </filesystem>
     <memballoon model='none'/>
   </devices>
 </domain>
-- 
2.53.0

Reply via email to