forked from rpms/libvirt
55 lines
1.5 KiB
Diff
55 lines
1.5 KiB
Diff
From f335c220a4ac822b6b66c8bd4dca0c85aad187f7 Mon Sep 17 00:00:00 2001
|
|
Message-Id: <f335c220a4ac822b6b66c8bd4dca0c85aad187f7@dist-git>
|
|
From: Pavel Hrdina <phrdina@redhat.com>
|
|
Date: Mon, 1 Jul 2019 17:07:20 +0200
|
|
Subject: [PATCH] vircgroup: introduce virCgroupV2StealPlacement
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
|
|
(cherry picked from commit f7394dcf010fc4be50b822e290e701430d45325d)
|
|
|
|
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1689297
|
|
|
|
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
|
|
Message-Id: <5e3bd896f2aa16a3637b90d1c8bd3b0676c2acbd.1561993100.git.phrdina@redhat.com>
|
|
Reviewed-by: Ján Tomko <jtomko@redhat.com>
|
|
---
|
|
src/util/vircgroupv2.c | 12 ++++++++++++
|
|
1 file changed, 12 insertions(+)
|
|
|
|
diff --git a/src/util/vircgroupv2.c b/src/util/vircgroupv2.c
|
|
index 815d8fca9b..270a6fb305 100644
|
|
--- a/src/util/vircgroupv2.c
|
|
+++ b/src/util/vircgroupv2.c
|
|
@@ -220,6 +220,17 @@ virCgroupV2ValidatePlacement(virCgroupPtr group,
|
|
}
|
|
|
|
|
|
+static char *
|
|
+virCgroupV2StealPlacement(virCgroupPtr group)
|
|
+{
|
|
+ char *ret;
|
|
+
|
|
+ VIR_STEAL_PTR(ret, group->unified.placement);
|
|
+
|
|
+ return ret;
|
|
+}
|
|
+
|
|
+
|
|
virCgroupBackend virCgroupV2Backend = {
|
|
.type = VIR_CGROUP_BACKEND_TYPE_V2,
|
|
|
|
@@ -230,6 +241,7 @@ virCgroupBackend virCgroupV2Backend = {
|
|
.detectMounts = virCgroupV2DetectMounts,
|
|
.detectPlacement = virCgroupV2DetectPlacement,
|
|
.validatePlacement = virCgroupV2ValidatePlacement,
|
|
+ .stealPlacement = virCgroupV2StealPlacement,
|
|
};
|
|
|
|
|
|
--
|
|
2.22.0
|
|
|