1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2025-03-07 17:28:15 +00:00

Add error checking on global quota and period

Signed-off-by: Alexander Burluka <aburluka@virtuozzo.com>
This commit is contained in:
Alexander Burluka 2016-02-16 16:43:35 +03:00 committed by Daniel P. Berrange
parent 55ecdae0fb
commit fbcbd1b252

View 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"));