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