Signed-off-by: Pavel Hrdina <phrdina(a)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 307a0b5142..a06226e414 100644
--- a/src/util/vircgroupv2.c
+++ b/src/util/vircgroupv2.c
@@ -228,6 +228,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,
@@ -238,6 +249,7 @@ virCgroupBackend virCgroupV2Backend = {
.detectMounts = virCgroupV2DetectMounts,
.detectPlacement = virCgroupV2DetectPlacement,
.validatePlacement = virCgroupV2ValidatePlacement,
+ .stealPlacement = virCgroupV2StealPlacement,
};
--
2.17.1