From 4920678f40f40675835effa8dee6c5ed09204c29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A1n=20Tomko?= Date: Thu, 22 Apr 2021 13:36:35 +0200 Subject: [PATCH] docs: document new socket attribute for virtiofs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Describe the attribute and add an example. Signed-off-by: Ján Tomko Reviewed-by: Jonathon Jongsma --- docs/formatdomain.rst | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/docs/formatdomain.rst b/docs/formatdomain.rst index 1b9b221611..282176c4f4 100644 --- a/docs/formatdomain.rst +++ b/docs/formatdomain.rst @@ -3242,6 +3242,10 @@ A directory on the host that can be accessed directly from the guest. + + + + ... ... @@ -3369,7 +3373,11 @@ A directory on the host that can be accessed directly from the guest. ``source`` The resource on the host that is being accessed in the guest. The ``name`` attribute must be used with ``type='template'``, and the ``dir`` attribute - must be used with ``type='mount'``. The ``usage`` attribute is used with + must be used with ``type='mount'``. For ``virtiofs``, the ``socket`` attribute + can be used to connect to a virtiofsd daemon launched outside of libvirt. + In that case, the ``target`` element does not apply and neither do most + virtiofs-related options, since they are controlled by virtiofsd, not libvirtd. + The ``usage`` attribute is used with ``type='ram'`` to set the memory limit in KiB, unless units are specified by the ``units`` attribute. ``target``