From fbcbd1b2520e92d8eb73cf1427d2f3de00a73510 Mon Sep 17 00:00:00 2001 From: Alexander Burluka Date: Tue, 16 Feb 2016 16:43:35 +0300 Subject: [PATCH] Add error checking on global quota and period Signed-off-by: Alexander Burluka --- src/qemu/qemu_command.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c index 0680478643..000c29d3e9 100644 --- a/src/qemu/qemu_command.c +++ b/src/qemu/qemu_command.c @@ -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"));