On Fri, Nov 1, 2019 at 1:15 PM Ján Tomko <jtomko(a)redhat.com> wrote:
Introduce a new 'virtio-fs' driver type for filesystem.
<filesystem type='mount' accessmode='passthrough'>
<driver type='virtio-fs'/>
<source dir='/path'/>
<target dir='/path'/>
What happens with the target dir?
virtio-fs has no way to pass the target dir into the guest.
Out-of-band methods exist: qemu-guest-agent could be used to mount the
file system. Another approach is to add a uevent to the virtiofs.ko
guest driver and let udev configuration decide what to do (e.g.
automount under /run/media/virtio-fs/$TAG or similar).
Stefan