if (def->cputune.shares ||
def->cputune.sharesSpecified ||
def->cputune.period ||
- def->cputune.quota ||
- def->cputune.nvcpupin) {
+ def->cputune.quota) {
virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
_("cputune is not supported by parallels driver"));
return -1;
}
+ if (def->cputune.vcpupin) {
+ for (i = 0; i < def->vcpus; i++) {
+ if (!virBitmapEqual(def->cpumask,
+ def->cputune.vcpupin[i]->cpumask)) {
+ virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
+ "%s", _("vcpupin cpumask differs from default cpumask"));
+ return -1;
+ }
+ }
+ }
+
/*
* Though we don't support NUMA configuration at the moment