]> git.ipfire.org Git - thirdparty/libvirt.git/commit
cgroups: Do not enforce nonexistent controllers
authorViktor Mihajlovski <mihajlov@linux.vnet.ibm.com>
Thu, 23 May 2013 13:26:31 +0000 (15:26 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 24 May 2013 10:11:24 +0000 (12:11 +0200)
commiteb21408f4493a8348a2b643215d48d4c72de8238
tree35ea0a2a2300bc54e65c029ee9e93e05f14a1528
parent2a3a725c33aba2046443d33eb473eb54517f61c8
cgroups: Do not enforce nonexistent controllers

Currently, the controllers argument to virCgroupDetect acts both as
a result filter and a required controller specification, which is
a bit overloaded. If both functionalities are needed, it would be
better to have them seperated into a filter and a requirement mask.
The only situation where it is used today is to ensure that only
CPU related controllers are used for the VCPU directories. But here
we clearly do not want to enforce the existence of cpu, cpuacct and
specifically not cpuset at the same time.
This commit changes the semantics of controllers to "filter only".
Should a required mask ever be needed, more work will have to be done.

Signed-off-by: Viktor Mihajlovski <mihajlov@linux.vnet.ibm.com>
src/util/vircgroup.c
tests/vircgrouptest.c