https://bugzilla.redhat.com/show_bug.cgi?id=1972571
Signed-off-by: Ján Tomko <jtomko(a)redhat.com>
---
src/qemu/qemu_virtiofs.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/qemu/qemu_virtiofs.c b/src/qemu/qemu_virtiofs.c
index 1b853a5a59..c89da76c27 100644
--- a/src/qemu/qemu_virtiofs.c
+++ b/src/qemu/qemu_virtiofs.c
@@ -162,6 +162,11 @@ qemuVirtioFSBuildCommandLine(virQEMUDriverConfig *cfg,
else if (fs->posix_lock == VIR_TRISTATE_SWITCH_OFF)
virBufferAddLit(&opts, ",no_posix_lock");
+ if (fs->killpriv_v2 == VIR_TRISTATE_SWITCH_ON)
+ virBufferAddLit(&opts, ",killpriv_v2");
+ else if (fs->killpriv_v2 == VIR_TRISTATE_SWITCH_OFF)
+ virBufferAddLit(&opts, ",no_killpriv_v2");
+
virCommandAddArgBuffer(cmd, &opts);
if (cfg->virtiofsdDebug)
virCommandAddArg(cmd, "-d");
--
2.31.1