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

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