LXC driver doesn't support vcpu affinity yet, so just need
to modify it to support cpu shares.
}
}
+ if (def->cputune.shares) {
+ rc = virCgroupSetCpuShares(cgroup, def->cputune.shares);
+ if (rc != 0) {
+ virReportSystemError(-rc,
+ _("Unable to set cpu shares for domain %s"),
+ def->name);
+ goto cleanup;
+ }
+ }
+
rc = virCgroupSetMemory(cgroup, def->mem.max_balloon);
if (rc != 0) {
virReportSystemError(-rc,
params[i].value.ul);
goto cleanup;
}
+
+ vm->def->cputune.shares = params[i].value.ul;
}
ret = 0;