Since the introduction of virt-host-validate tool the set of cgroup controllers we use has changed so the tool is checking for some cgroups that we don't need (e.g. net_cls, although I doubt we have ever used that one) and is not checking for those we actually use (e.g. cpuset). Signed-off-by: Michal Privoznik <mprivozn@xxxxxxxxxx> --- tools/virt-host-validate-lxc.c | 16 ++++++++-------- tools/virt-host-validate-qemu.c | 10 +++++----- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/tools/virt-host-validate-lxc.c b/tools/virt-host-validate-lxc.c index 48323da..e604f83 100644 --- a/tools/virt-host-validate-lxc.c +++ b/tools/virt-host-validate-lxc.c @@ -78,19 +78,19 @@ int virHostValidateLXC(void) "CGROUP_CPUACCT") < 0) ret = -1; + if (virHostValidateCGroupController("LXC", "cpuset", + VIR_HOST_VALIDATE_FAIL, + "CPUSETS") < 0) + ret = -1; + if (virHostValidateCGroupController("LXC", "devices", VIR_HOST_VALIDATE_FAIL, "CGROUP_DEVICE") < 0) ret = -1; - if (virHostValidateCGroupController("LXC", "net_cls", - VIR_HOST_VALIDATE_WARN, - "NET_CLS_CGROUP") < 0) - ret = -1; - - if (virHostValidateCGroupController("LXC", "freezer", - VIR_HOST_VALIDATE_WARN, - "CGROUP_FREEZER") < 0) + if (virHostValidateCGroupController("LXC", "blkio", + VIR_HOST_VALIDATE_FAIL, + "BLK_CGROUP") < 0) ret = -1; return ret; diff --git a/tools/virt-host-validate-qemu.c b/tools/virt-host-validate-qemu.c index 044df65..a9f6c1e 100644 --- a/tools/virt-host-validate-qemu.c +++ b/tools/virt-host-validate-qemu.c @@ -74,16 +74,16 @@ int virHostValidateQEMU(void) "CGROUP_CPUACCT") < 0) ret = -1; + if (virHostValidateCGroupController("QEMU", "cpuset", + VIR_HOST_VALIDATE_WARN, + "CPUSETS") < 0) + ret = -1; + if (virHostValidateCGroupController("QEMU", "devices", VIR_HOST_VALIDATE_WARN, "CGROUP_DEVICES") < 0) ret = -1; - if (virHostValidateCGroupController("QEMU", "net_cls", - VIR_HOST_VALIDATE_WARN, - "NET_CLS_CGROUP") < 0) - ret = -1; - if (virHostValidateCGroupController("QEMU", "blkio", VIR_HOST_VALIDATE_WARN, "BLK_CGROUP") < 0) -- 2.4.10 -- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list