On Mon Feb 23, 2026 at 4:40 PM CET, Markus Frank wrote: > Signed-off-by: Markus Frank <[email protected]> > --- > qm.adoc | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/qm.adoc b/qm.adoc > index 46217a6..09fbd20 100644 > --- a/qm.adoc > +++ b/qm.adoc > @@ -1342,12 +1342,13 @@ All Optional Parameters: > |`expose-acl` |Enables ACL passthrough; implies `expose-xattr`. Supported > only on compatible filesystems. |`0` > |`expose-xattr` |Enables xattr passthrough; redundant if `expose-acl` is > `1`. |`0` > |`direct-io` |Enables support for the `O_DIRECT` flag. May degrade > performance, but is useful if applications perform their own caching. |`0` > +|`thread-pool-size` |Controls the maximum number of worker threads used by > virtiofsd to handle requests. Adjust for performance tuning. `0` disables the > thread pool. |`0` > |===
`readonly` should be added here in another patch as well... but we could also make this a little more future proof if we generate these while building with a `gen-optional-virtiofsd-opts.pl` script. > > ---- > qm set <vmid> -virtiofs0 dirid=<dirid>,cache=always,direct-io=1 > qm set <vmid> -virtiofs1 <dirid>,cache=never,expose-xattr=1 > -qm set <vmid> -virtiofs2 <dirid>,expose-acl=1 > +qm set <vmid> -virtiofs2 <dirid>,expose-acl=1,thread-pool-size=16 > ---- > > To temporarily mount virtiofs in a guest VM with the Linux kernel virtiofs
