]> xenbits.xensource.com Git - libvirt.git/commitdiff
Add error checking on global quota and period
authorAlexander Burluka <aburluka@virtuozzo.com>
Tue, 16 Feb 2016 13:43:35 +0000 (16:43 +0300)
committerDaniel P. Berrange <berrange@redhat.com>
Tue, 1 Mar 2016 14:29:06 +0000 (14:29 +0000)
Signed-off-by: Alexander Burluka <aburluka@virtuozzo.com>
src/qemu/qemu_command.c

index 06804786432316c0bc7e93893be215bff4dfde3a..000c29d3e97663a24b965d9f8d0f6699e092fe8b 100644 (file)
@@ -6957,7 +6957,8 @@ qemuBuildCommandLineValidate(virQEMUDriverPtr driver,
         }
 
         if (def->cputune.sharesSpecified || def->cputune.period ||
-            def->cputune.quota || def->cputune.emulator_period ||
+            def->cputune.quota || def->cputune.global_period ||
+            def->cputune.global_quota || def->cputune.emulator_period ||
             def->cputune.emulator_quota) {
             virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
                            _("CPU tuning is not available in session mode"));