render / rpms / libvirt

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