render / rpms / libvirt

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