Blame SOURCES/libvirt-qemuDomainSetIOThreadParams-Accept-VIR_DOMAIN_AFFECT_CONFIG-flag.patch

a1c947
From 9b00b5666a014999a3bc9e2e8a6a844ca7a4326f Mon Sep 17 00:00:00 2001
a1c947
Message-Id: <9b00b5666a014999a3bc9e2e8a6a844ca7a4326f@dist-git>
a1c947
From: Michal Privoznik <mprivozn@redhat.com>
a1c947
Date: Fri, 8 Jul 2022 09:35:39 +0200
a1c947
Subject: [PATCH] qemuDomainSetIOThreadParams: Accept VIR_DOMAIN_AFFECT_CONFIG
a1c947
 flag
a1c947
MIME-Version: 1.0
a1c947
Content-Type: text/plain; charset=UTF-8
a1c947
Content-Transfer-Encoding: 8bit
a1c947
a1c947
It was always possible to modify the inactive XML, because
a1c947
VIR_DOMAIN_AFFECT_CURRENT (= 0) is accepted implicitly. But now
a1c947
that the logic when changing both config and live XMLs is more
a1c947
robust we can accept VIR_DOMAIN_AFFECT_CONFIG flag too.
a1c947
a1c947
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
a1c947
Reviewed-by: Ján Tomko <jtomko@redhat.com>
a1c947
(cherry picked from commit 3096965ce78923b099fa39e4950279b2f21ab60a)
a1c947
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=2059511
a1c947
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
a1c947
---
a1c947
 src/qemu/qemu_driver.c | 3 ++-
a1c947
 1 file changed, 2 insertions(+), 1 deletion(-)
a1c947
a1c947
diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c
a1c947
index 2c627396f1..654b5d65e5 100644
a1c947
--- a/src/qemu/qemu_driver.c
a1c947
+++ b/src/qemu/qemu_driver.c
a1c947
@@ -5818,7 +5818,8 @@ qemuDomainSetIOThreadParams(virDomainPtr dom,
a1c947
     qemuMonitorIOThreadInfo iothread = {0};
a1c947
     int ret = -1;
a1c947
 
a1c947
-    virCheckFlags(VIR_DOMAIN_AFFECT_LIVE, -1);
a1c947
+    virCheckFlags(VIR_DOMAIN_AFFECT_LIVE |
a1c947
+                  VIR_DOMAIN_AFFECT_CONFIG, -1);
a1c947
 
a1c947
     if (iothread_id == 0) {
a1c947
         virReportError(VIR_ERR_INVALID_ARG, "%s",
a1c947
-- 
a1c947
2.35.1
a1c947