render / rpms / libvirt

Forked from rpms/libvirt 9 months ago
Clone
Blob Blame History Raw
From f150121476cbe99dcca7378583aa1f0533c072d1 Mon Sep 17 00:00:00 2001
Message-Id: <f150121476cbe99dcca7378583aa1f0533c072d1@dist-git>
From: Pavel Hrdina <phrdina@redhat.com>
Date: Mon, 1 Jul 2019 17:08:04 +0200
Subject: [PATCH] virt-host-validate: require freezer for LXC
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Cgroup freezer support for LXC was added in libvirt-0.7.2.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
(cherry picked from commit 0a7101c89b787d2f45690f8ad3a4b932b000b758)

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1689297

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Message-Id: <ffd30e592e34a26e5b610b07b705da9727ce3cd2.1561993100.git.phrdina@redhat.com>
Reviewed-by: Ján Tomko <jtomko@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.22.0