render / rpms / libvirt

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