|
|
3a9410 |
From 521e9a7731ac678ca790da4b04dabe4369efb984 Mon Sep 17 00:00:00 2001
|
|
|
3a9410 |
Message-Id: <521e9a7731ac678ca790da4b04dabe4369efb984@dist-git>
|
|
|
3a9410 |
From: Peter Krempa <pkrempa@redhat.com>
|
|
|
3a9410 |
Date: Wed, 1 Mar 2023 17:09:42 +0100
|
|
|
3a9410 |
Subject: [PATCH] qemu: domain: Fix logic when tainting domain
|
|
|
3a9410 |
|
|
|
3a9410 |
Originally the code was skipping all repeated taints with the same taint
|
|
|
3a9410 |
flag but a logic bug introduced in commit 30626ed15b239c424ae inverted
|
|
|
3a9410 |
the condition. This caused that actually the first occurence was NOT
|
|
|
3a9410 |
logged but any subsequent was.
|
|
|
3a9410 |
|
|
|
3a9410 |
This was noticed when going through oVirt logs as they use custom guest
|
|
|
3a9410 |
agent commands and the logs are totally spammed with this message.
|
|
|
3a9410 |
|
|
|
3a9410 |
Fixes: 30626ed15b239c424ae891f096057a696eadd715
|
|
|
3a9410 |
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
|
|
|
3a9410 |
Reviewed-by: Laine Stump <laine@redhat.com>
|
|
|
3a9410 |
(cherry picked from commit 9134b40d0b43a5e1a9928b0a0d948205941d9807)
|
|
|
3a9410 |
https://bugzilla.redhat.com/show_bug.cgi?id=2174447
|
|
|
3a9410 |
---
|
|
|
3a9410 |
src/qemu/qemu_domain.c | 2 +-
|
|
|
3a9410 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
3a9410 |
|
|
|
3a9410 |
diff --git a/src/qemu/qemu_domain.c b/src/qemu/qemu_domain.c
|
|
|
3a9410 |
index c24d1e4d53..c70661fc49 100644
|
|
|
3a9410 |
--- a/src/qemu/qemu_domain.c
|
|
|
3a9410 |
+++ b/src/qemu/qemu_domain.c
|
|
|
3a9410 |
@@ -6369,7 +6369,7 @@ void qemuDomainObjTaintMsg(virQEMUDriver *driver,
|
|
|
3a9410 |
const char *extrasuffix = "";
|
|
|
3a9410 |
va_list args;
|
|
|
3a9410 |
|
|
|
3a9410 |
- if (virDomainObjTaint(obj, taint)) {
|
|
|
3a9410 |
+ if (!virDomainObjTaint(obj, taint)) {
|
|
|
3a9410 |
/* If an extra message was given we must always
|
|
|
3a9410 |
* emit the taint warning, otherwise it is a
|
|
|
3a9410 |
* one-time only warning per VM
|
|
|
3a9410 |
--
|
|
|
3a9410 |
2.39.2
|
|
|
3a9410 |
|