51d9a2
From 7bbe8d3560b3a5f2ef2cf8c833926bcc013897b0 Mon Sep 17 00:00:00 2001
51d9a2
Message-Id: <7bbe8d3560b3a5f2ef2cf8c833926bcc013897b0@dist-git>
51d9a2
From: Katerina Koukiou <kkoukiou@redhat.com>
51d9a2
Date: Mon, 16 Jul 2018 15:45:17 +0200
51d9a2
Subject: [PATCH] qemu: Fix setting global_period cputune element
51d9a2
MIME-Version: 1.0
51d9a2
Content-Type: text/plain; charset=UTF-8
51d9a2
Content-Transfer-Encoding: 8bit
51d9a2
51d9a2
When VIR_DOMAIN_SCHEDULER_GLOBAL_PERIOD is matched "cputune.global_period"
51d9a2
should be updated and not "cputune.period".
51d9a2
51d9a2
Signed-off-by: Katerina Koukiou <kkoukiou@redhat.com>
51d9a2
51d9a2
https://bugzilla.redhat.com/show_bug.cgi?id=1600427
51d9a2
Reviewed-by: Ján Tomko <jtomko@redhat.com>
51d9a2
Signed-off-by: Ján Tomko <jtomko@redhat.com>
51d9a2
(cherry picked from commit 74b5634b77b388a454303a2be0b4d704e261305f)
51d9a2
Signed-off-by: Katerina Koukiou <kkoukiou@redhat.com>
51d9a2
Reviewed-by: Ján Tomko <jtomko@redhat.com>
51d9a2
---
51d9a2
 src/qemu/qemu_driver.c | 2 +-
51d9a2
 1 file changed, 1 insertion(+), 1 deletion(-)
51d9a2
51d9a2
diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c
51d9a2
index 4cb05bf81c..7094c80498 100644
51d9a2
--- a/src/qemu/qemu_driver.c
51d9a2
+++ b/src/qemu/qemu_driver.c
51d9a2
@@ -10568,7 +10568,7 @@ qemuDomainSetSchedulerParametersFlags(virDomainPtr dom,
51d9a2
             }
51d9a2
 
51d9a2
             if (persistentDef)
51d9a2
-                persistentDefCopy->cputune.period = value_ul;
51d9a2
+                persistentDefCopy->cputune.global_period = value_ul;
51d9a2
 
51d9a2
         } else if (STREQ(param->field, VIR_DOMAIN_SCHEDULER_GLOBAL_QUOTA)) {
51d9a2
             SCHED_RANGE_CHECK(value_l, VIR_DOMAIN_SCHEDULER_GLOBAL_QUOTA,
51d9a2
-- 
51d9a2
2.18.0
51d9a2