On 10/02/2018 10:44 AM, Pavel Hrdina wrote:
This removes code duplication and simplifies cgroup detection.
As a drawback we will not have separate messages to enable cgroup
controller in kernel or to mount it. On the other side the rewrite
adds support for cgroup v2.
The kernel config support was wrong because it was parsing
'/proc/self/cgroup' instead of '/proc/cgroups/' file.
The mount suggestion is removed as well because it will not work
with cgroup v2.
Signed-off-by: Pavel Hrdina <phrdina(a)redhat.com>
---
tools/virt-host-validate-common.c | 162 ++++++------------------------
tools/virt-host-validate-common.h | 7 +-
tools/virt-host-validate-lxc.c | 40 ++------
tools/virt-host-validate-qemu.c | 40 ++------
4 files changed, 54 insertions(+), 195 deletions(-)
ACK
Michal