]> xenbits.xensource.com Git - libvirt.git/commitdiff
host-validate: Fix suggestion for missing cpu cgroup
authorAndrea Bolognani <abologna@redhat.com>
Tue, 29 Mar 2016 16:40:34 +0000 (18:40 +0200)
committerAndrea Bolognani <abologna@redhat.com>
Wed, 30 Mar 2016 07:41:54 +0000 (09:41 +0200)
If the cpu cgroup is not found when validating an host for
LXC support, virt-host-validate will suggest to enable the
CONFIG_CGROUP_SCHED kconfig option.

The appropriate option is really CONFIG_CGROUP_CPU. The
QEMU checks already get that right, so no changes needed.

tools/virt-host-validate-lxc.c

index 89a6388fbf95bff1e349b6a7ee7d8ff34c62dc2a..2b906cc88a6caaf42d4d0584da838e67c44fbb50 100644 (file)
@@ -70,7 +70,7 @@ int virHostValidateLXC(void)
 
     if (virHostValidateCGroupController("LXC", "cpu",
                                         VIR_HOST_VALIDATE_FAIL,
-                                        "CGROUP_SCHED") < 0)
+                                        "CGROUP_CPU") < 0)
         ret = -1;
 
     if (virHostValidateCGroupController("LXC", "cpuacct",