|
|
a41c76 |
From 26d83d4f99fbdebf9546ebb883535a85dda2fbad Mon Sep 17 00:00:00 2001
|
|
|
a41c76 |
Message-Id: <26d83d4f99fbdebf9546ebb883535a85dda2fbad@dist-git>
|
|
|
a41c76 |
From: =?UTF-8?q?J=C3=A1n=20Tomko?= <jtomko@redhat.com>
|
|
|
a41c76 |
Date: Wed, 4 Mar 2020 12:42:43 +0100
|
|
|
a41c76 |
Subject: [PATCH] qemu: add virtiofsd_debug to qemu.conf
|
|
|
a41c76 |
MIME-Version: 1.0
|
|
|
a41c76 |
Content-Type: text/plain; charset=UTF-8
|
|
|
a41c76 |
Content-Transfer-Encoding: 8bit
|
|
|
a41c76 |
|
|
|
a41c76 |
Add a 'virtiofsd_debug' option for tuning whether to run virtiofsd
|
|
|
a41c76 |
in debug mode.
|
|
|
a41c76 |
|
|
|
a41c76 |
Signed-off-by: Ján Tomko <jtomko@redhat.com>
|
|
|
a41c76 |
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
|
|
|
a41c76 |
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
|
|
|
a41c76 |
Tested-by: Andrea Bolognani <abologna@redhat.com>
|
|
|
a41c76 |
(cherry picked from commit f04319a5449974f1553458e96c2a6ee25e65ab93)
|
|
|
a41c76 |
Signed-off-by: Ján Tomko <jtomko@redhat.com>
|
|
|
a41c76 |
https://bugzilla.redhat.com/show_bug.cgi?id=1694166
|
|
|
a41c76 |
Message-Id: <6e46af8184e9e982a6aca92a62534623795bb1fc.1583322091.git.jtomko@redhat.com>
|
|
|
a41c76 |
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
|
|
|
a41c76 |
---
|
|
|
a41c76 |
src/qemu/libvirtd_qemu.aug | 1 +
|
|
|
a41c76 |
src/qemu/qemu.conf | 7 +++++++
|
|
|
a41c76 |
src/qemu/qemu_conf.c | 2 ++
|
|
|
a41c76 |
src/qemu/qemu_conf.h | 1 +
|
|
|
a41c76 |
src/qemu/test_libvirtd_qemu.aug.in | 1 +
|
|
|
a41c76 |
5 files changed, 12 insertions(+)
|
|
|
a41c76 |
|
|
|
a41c76 |
diff --git a/src/qemu/libvirtd_qemu.aug b/src/qemu/libvirtd_qemu.aug
|
|
|
a41c76 |
index 557b6f38f8..3014fa6b86 100644
|
|
|
a41c76 |
--- a/src/qemu/libvirtd_qemu.aug
|
|
|
a41c76 |
+++ b/src/qemu/libvirtd_qemu.aug
|
|
|
a41c76 |
@@ -116,6 +116,7 @@ module Libvirtd_qemu =
|
|
|
a41c76 |
let nvram_entry = str_array_entry "nvram"
|
|
|
a41c76 |
|
|
|
a41c76 |
let debug_level_entry = int_entry "gluster_debug_level"
|
|
|
a41c76 |
+ | bool_entry "virtiofsd_debug"
|
|
|
a41c76 |
|
|
|
a41c76 |
let memory_entry = str_entry "memory_backing_dir"
|
|
|
a41c76 |
|
|
|
a41c76 |
diff --git a/src/qemu/qemu.conf b/src/qemu/qemu.conf
|
|
|
a41c76 |
index b6805ffc41..815d2d78ae 100644
|
|
|
a41c76 |
--- a/src/qemu/qemu.conf
|
|
|
a41c76 |
+++ b/src/qemu/qemu.conf
|
|
|
a41c76 |
@@ -809,6 +809,13 @@
|
|
|
a41c76 |
#
|
|
|
a41c76 |
#gluster_debug_level = 9
|
|
|
a41c76 |
|
|
|
a41c76 |
+# virtiofsd debug
|
|
|
a41c76 |
+#
|
|
|
a41c76 |
+# Whether to enable the debugging output of the virtiofsd daemon.
|
|
|
a41c76 |
+# Possible values are 0 or 1. Disabled by default.
|
|
|
a41c76 |
+#
|
|
|
a41c76 |
+#virtiofsd_debug = 1
|
|
|
a41c76 |
+
|
|
|
a41c76 |
# To enhance security, QEMU driver is capable of creating private namespaces
|
|
|
a41c76 |
# for each domain started. Well, so far only "mount" namespace is supported. If
|
|
|
a41c76 |
# enabled it means qemu process is unable to see all the devices on the system,
|
|
|
a41c76 |
diff --git a/src/qemu/qemu_conf.c b/src/qemu/qemu_conf.c
|
|
|
a41c76 |
index 029996427e..7aaf2862a4 100644
|
|
|
a41c76 |
--- a/src/qemu/qemu_conf.c
|
|
|
a41c76 |
+++ b/src/qemu/qemu_conf.c
|
|
|
a41c76 |
@@ -801,6 +801,8 @@ virQEMUDriverConfigLoadDebugEntry(virQEMUDriverConfigPtr cfg,
|
|
|
a41c76 |
{
|
|
|
a41c76 |
if (virConfGetValueUInt(conf, "gluster_debug_level", &cfg->glusterDebugLevel) < 0)
|
|
|
a41c76 |
return -1;
|
|
|
a41c76 |
+ if (virConfGetValueBool(conf, "virtiofsd_debug", &cfg->virtiofsdDebug) < 0)
|
|
|
a41c76 |
+ return -1;
|
|
|
a41c76 |
|
|
|
a41c76 |
return 0;
|
|
|
a41c76 |
}
|
|
|
a41c76 |
diff --git a/src/qemu/qemu_conf.h b/src/qemu/qemu_conf.h
|
|
|
a41c76 |
index b9401635d7..4361f5b2bb 100644
|
|
|
a41c76 |
--- a/src/qemu/qemu_conf.h
|
|
|
a41c76 |
+++ b/src/qemu/qemu_conf.h
|
|
|
a41c76 |
@@ -202,6 +202,7 @@ struct _virQEMUDriverConfig {
|
|
|
a41c76 |
virFirmwarePtr *firmwares;
|
|
|
a41c76 |
size_t nfirmwares;
|
|
|
a41c76 |
unsigned int glusterDebugLevel;
|
|
|
a41c76 |
+ bool virtiofsdDebug;
|
|
|
a41c76 |
|
|
|
a41c76 |
char *memoryBackingDir;
|
|
|
a41c76 |
|
|
|
a41c76 |
diff --git a/src/qemu/test_libvirtd_qemu.aug.in b/src/qemu/test_libvirtd_qemu.aug.in
|
|
|
a41c76 |
index dd90edf687..fca9a942c9 100644
|
|
|
a41c76 |
--- a/src/qemu/test_libvirtd_qemu.aug.in
|
|
|
a41c76 |
+++ b/src/qemu/test_libvirtd_qemu.aug.in
|
|
|
a41c76 |
@@ -98,6 +98,7 @@ module Test_libvirtd_qemu =
|
|
|
a41c76 |
}
|
|
|
a41c76 |
{ "stdio_handler" = "logd" }
|
|
|
a41c76 |
{ "gluster_debug_level" = "9" }
|
|
|
a41c76 |
+{ "virtiofsd_debug" = "1" }
|
|
|
a41c76 |
{ "namespaces"
|
|
|
a41c76 |
{ "1" = "mount" }
|
|
|
a41c76 |
}
|
|
|
a41c76 |
--
|
|
|
a41c76 |
2.25.1
|
|
|
a41c76 |
|