[libvirt PATCH 2/2] qemu: virtiofs: add (no_)killpriv_v2 support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



https://bugzilla.redhat.com/show_bug.cgi?id=1972571

Signed-off-by: Ján Tomko <jtomko@xxxxxxxxxx>
---
 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




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux