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