]> xenbits.xensource.com Git - libvirt.git/commitdiff
qemu: Fix setting global_period cputune element
authorKaterina Koukiou <kkoukiou@redhat.com>
Mon, 16 Jul 2018 13:08:44 +0000 (15:08 +0200)
committerJán Tomko <jtomko@redhat.com>
Mon, 16 Jul 2018 13:26:15 +0000 (15:26 +0200)
When VIR_DOMAIN_SCHEDULER_GLOBAL_PERIOD is matched "cputune.global_period"
should be updated and not "cputune.period".

Signed-off-by: Katerina Koukiou <kkoukiou@redhat.com>
https://bugzilla.redhat.com/show_bug.cgi?id=1600427
Reviewed-by: Ján Tomko <jtomko@redhat.com>
Signed-off-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_driver.c

index 5de9aaefbb8a4191bd7bbd33ad6f43f906ee4f81..8fae46370e40bc887bb46e9de91ffd7b10eedb5c 100644 (file)
@@ -10556,7 +10556,7 @@ qemuDomainSetSchedulerParametersFlags(virDomainPtr dom,
             }
 
             if (persistentDef)
-                persistentDefCopy->cputune.period = value_ul;
+                persistentDefCopy->cputune.global_period = value_ul;
 
         } else if (STREQ(param->field, VIR_DOMAIN_SCHEDULER_GLOBAL_QUOTA)) {
             SCHED_RANGE_CHECK(value_l, VIR_DOMAIN_SCHEDULER_GLOBAL_QUOTA,