c313de
From f150121476cbe99dcca7378583aa1f0533c072d1 Mon Sep 17 00:00:00 2001
c313de
Message-Id: <f150121476cbe99dcca7378583aa1f0533c072d1@dist-git>
c313de
From: Pavel Hrdina <phrdina@redhat.com>
c313de
Date: Mon, 1 Jul 2019 17:08:04 +0200
c313de
Subject: [PATCH] virt-host-validate: require freezer for LXC
c313de
MIME-Version: 1.0
c313de
Content-Type: text/plain; charset=UTF-8
c313de
Content-Transfer-Encoding: 8bit
c313de
c313de
Cgroup freezer support for LXC was added in libvirt-0.7.2.
c313de
c313de
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
c313de
(cherry picked from commit 0a7101c89b787d2f45690f8ad3a4b932b000b758)
c313de
c313de
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1689297
c313de
c313de
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
c313de
Message-Id: <ffd30e592e34a26e5b610b07b705da9727ce3cd2.1561993100.git.phrdina@redhat.com>
c313de
Reviewed-by: Ján Tomko <jtomko@redhat.com>
c313de
---
c313de
 tools/virt-host-validate-lxc.c | 1 +
c313de
 1 file changed, 1 insertion(+)
c313de
c313de
diff --git a/tools/virt-host-validate-lxc.c b/tools/virt-host-validate-lxc.c
c313de
index 3c55b1b26d..8613f37cc7 100644
c313de
--- a/tools/virt-host-validate-lxc.c
c313de
+++ b/tools/virt-host-validate-lxc.c
c313de
@@ -70,6 +70,7 @@ int virHostValidateLXC(void)
c313de
                                          (1 << VIR_CGROUP_CONTROLLER_CPUACCT) |
c313de
                                          (1 << VIR_CGROUP_CONTROLLER_CPUSET) |
c313de
                                          (1 << VIR_CGROUP_CONTROLLER_DEVICES) |
c313de
+                                         (1 << VIR_CGROUP_CONTROLLER_FREEZER) |
c313de
                                          (1 << VIR_CGROUP_CONTROLLER_BLKIO),
c313de
                                          VIR_HOST_VALIDATE_FAIL) < 0) {
c313de
         ret = -1;
c313de
-- 
c313de
2.22.0
c313de