[libvirt] [PATCH 53/53] virt-host-validate: require freezer for LXC

Pavel Hrdina posted 53 patches 6 years, 7 months ago
There is a newer version of this series
[libvirt] [PATCH 53/53] virt-host-validate: require freezer for LXC
Posted by Pavel Hrdina 6 years, 7 months ago
Cgroup freezer support for LXC was added in libvirt-0.7.2.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
---
 tools/virt-host-validate-lxc.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tools/virt-host-validate-lxc.c b/tools/virt-host-validate-lxc.c
index 3c55b1b26d..8613f37cc7 100644
--- a/tools/virt-host-validate-lxc.c
+++ b/tools/virt-host-validate-lxc.c
@@ -70,6 +70,7 @@ int virHostValidateLXC(void)
                                          (1 << VIR_CGROUP_CONTROLLER_CPUACCT) |
                                          (1 << VIR_CGROUP_CONTROLLER_CPUSET) |
                                          (1 << VIR_CGROUP_CONTROLLER_DEVICES) |
+                                         (1 << VIR_CGROUP_CONTROLLER_FREEZER) |
                                          (1 << VIR_CGROUP_CONTROLLER_BLKIO),
                                          VIR_HOST_VALIDATE_FAIL) < 0) {
         ret = -1;
-- 
2.17.1

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list
Re: [libvirt] [PATCH 53/53] virt-host-validate: require freezer for LXC
Posted by Michal Privoznik 6 years, 7 months ago
On 10/02/2018 10:44 AM, Pavel Hrdina wrote:
> Cgroup freezer support for LXC was added in libvirt-0.7.2.
> 
> Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
> ---
>  tools/virt-host-validate-lxc.c | 1 +
>  1 file changed, 1 insertion(+)

ACK

Michal

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list