On Fri, Jan 24, 2020 at 10:41:32AM +0100, Peter Krempa wrote:
On Thu, Jan 23, 2020 at 18:46:11 +0100, Ján Tomko wrote:Add a document describing the usage of virtiofs. --- docs/kbase.html.in | 3 + docs/kbase/virtiofs.rst | 153 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 156 insertions(+) create mode 100644 docs/kbase/virtiofs.rst
[...]
+3. Add the ``vhost-user-fs`` QEMU device via the ``filesystem`` element + +:: + + <domain> + ... + <devices> + ... + <filesystem type='mount' accessmode='passthrough'> + <driver type='virtiofs'> + <binary>/usr/libexec/virtiofsd</binary> + </driver> + <source dir='/path'/> + <target dir='mount_tag'/> + </filesystem> + ... + </devices> + </domain> + +Note that despite its name, the ``target dir`` is actually a mount tag and does +not have to correspond to the desired mount point in the guest.In that case it should perhaps also have a different attribute.
I was considering that, however we already use it the same way for 9pfs. https://www.redhat.com/archives/libvir-list/2019-November/msg01150.html Jano
Attachment:
signature.asc
Description: PGP signature