]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemu: add virtiofsd_debug to qemu.conf
authorJán Tomko <jtomko@redhat.com>
Wed, 11 Dec 2019 21:30:06 +0000 (22:30 +0100)
committerJán Tomko <jtomko@redhat.com>
Wed, 4 Mar 2020 11:08:50 +0000 (12:08 +0100)
Add a 'virtiofsd_debug' option for tuning whether to run virtiofsd
in debug mode.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Tested-by: Andrea Bolognani <abologna@redhat.com>
src/qemu/libvirtd_qemu.aug
src/qemu/qemu.conf
src/qemu/qemu_conf.c
src/qemu/qemu_conf.h
src/qemu/test_libvirtd_qemu.aug.in

index 557b6f38f8b0d77b774ba223e2d93aa301841637..3014fa6b86c63ec8c96103f0b43c6e61d85c8a5d 100644 (file)
@@ -116,6 +116,7 @@ module Libvirtd_qemu =
    let nvram_entry = str_array_entry "nvram"
 
    let debug_level_entry = int_entry "gluster_debug_level"
+                 | bool_entry "virtiofsd_debug"
 
    let memory_entry = str_entry "memory_backing_dir"
 
index b6805ffc415da4e0380d63a3837dd6dd1dc21eb0..815d2d78aef5c9f35d41adc532b4cfd71c62d7cb 100644 (file)
 #
 #gluster_debug_level = 9
 
+# virtiofsd debug
+#
+# Whether to enable the debugging output of the virtiofsd daemon.
+# Possible values are 0 or 1. Disabled by default.
+#
+#virtiofsd_debug = 1
+
 # To enhance security, QEMU driver is capable of creating private namespaces
 # for each domain started. Well, so far only "mount" namespace is supported. If
 # enabled it means qemu process is unable to see all the devices on the system,
index eeb29f46bd29f640b09b1822566ffac11971d4a9..17a6eb3422295d8652afc8a326ca2c42a499d898 100644 (file)
@@ -836,6 +836,8 @@ virQEMUDriverConfigLoadDebugEntry(virQEMUDriverConfigPtr cfg,
 {
     if (virConfGetValueUInt(conf, "gluster_debug_level", &cfg->glusterDebugLevel) < 0)
         return -1;
+    if (virConfGetValueBool(conf, "virtiofsd_debug", &cfg->virtiofsdDebug) < 0)
+        return -1;
 
     return 0;
 }
index cedf232223d36230d1f352216e99fa32ca95fa98..3ce9566b7168463546abe73dd11fda17490bd361 100644 (file)
@@ -202,6 +202,7 @@ struct _virQEMUDriverConfig {
     virFirmwarePtr *firmwares;
     size_t nfirmwares;
     unsigned int glusterDebugLevel;
+    bool virtiofsdDebug;
 
     char *memoryBackingDir;
 
index dd90edf687a82dcf0f3088eb199e3821dd539521..fca9a942c9d5b6001cd8c535898f151b5d53d306 100644 (file)
@@ -98,6 +98,7 @@ module Test_libvirtd_qemu =
 }
 { "stdio_handler" = "logd" }
 { "gluster_debug_level" = "9" }
+{ "virtiofsd_debug" = "1" }
 { "namespaces"
     { "1" = "mount" }
 }