[PATCH 09/53] vircgroup: introduce virCgroupV2StealPlacement

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Pavel Hrdina <phrdina@xxxxxxxxxx>
---
 src/util/vircgroupv2.c | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/src/util/vircgroupv2.c b/src/util/vircgroupv2.c
index 23443abfbb..d4e0366780 100644
--- a/src/util/vircgroupv2.c
+++ b/src/util/vircgroupv2.c
@@ -221,6 +221,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,
 
@@ -231,6 +242,7 @@ virCgroupBackend virCgroupV2Backend = {
     .detectMounts = virCgroupV2DetectMounts,
     .detectPlacement = virCgroupV2DetectPlacement,
     .validatePlacement = virCgroupV2ValidatePlacement,
+    .stealPlacement = virCgroupV2StealPlacement,
 };
 
 
-- 
2.17.1

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux