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