[libvirt] [PATCH] vircgroup: Fix build issue on mingw

John Ferlan jferlan at redhat.com
Fri Mar 27 16:18:26 UTC 2015


Commit id 'ba1dfc5' added virCgroupSetCpusetMemoryMigrate and
virCgroupGetCpusetMemoryMigrate, but did not add the corresponding
entry points into the "#else /* !VIR_CGROUP_SUPPORTED */" section

Signed-off-by: John Ferlan <jferlan at redhat.com>
---

Not pushing as a build break since I'm not 100% it fixes the issue
eblake mentions in his review of a recent cgroup series.

 src/util/vircgroup.c | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/src/util/vircgroup.c b/src/util/vircgroup.c
index 0a2e729..093a146 100644
--- a/src/util/vircgroup.c
+++ b/src/util/vircgroup.c
@@ -4420,6 +4420,26 @@ virCgroupGetCpusetMems(virCgroupPtr group ATTRIBUTE_UNUSED,
 
 
 int
+virCgroupSetCpusetMemoryMigrate(virCgroupPtr group ATTRIBUTE_UNUSED,
+                                bool migrate ATTRIBUTE_UNUSED)
+{
+    virReportSystemError(ENOSYS, "%s",
+                         _("Control groups not supported on this platform"));
+    return -1;
+}
+
+
+int
+virCgroupGetCpusetMemoryMigrate(virCgroupPtr group ATTRIBUTE_UNUSED,
+                                bool *migrate ATTRIBUTE_UNUSED)
+{
+    virReportSystemError(ENOSYS, "%s",
+                         _("Control groups not supported on this platform"));
+    return -1;
+}
+
+
+int
 virCgroupSetCpusetCpus(virCgroupPtr group ATTRIBUTE_UNUSED,
                        const char *cpus ATTRIBUTE_UNUSED)
 {
-- 
2.1.0




More information about the libvir-list mailing list