]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
* src/nodeinfo.c: sometimes libnuma can't handle some topologies,
authorDaniel Veillard <veillard@redhat.com>
Fri, 26 Jun 2009 20:08:07 +0000 (20:08 +0000)
committerDaniel Veillard <veillard@redhat.com>
Fri, 26 Jun 2009 20:08:07 +0000 (20:08 +0000)
  but those failures should not completely break libvirt, patch
  by Dan Berrange, fixes #506590
daniel

ChangeLog
src/nodeinfo.c

index 029840473030981cee010b8b9228cf93eb452302..6c39f349cf666e9700a4a5d52fce76d67f7ebbdf 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Fri Jun 26 22:02:22 CEST 2009 Daniel Veillard <veillard@redhat.com>
+
+       * src/nodeinfo.c: sometimes libnuma can't handle some topologies,
+         but those failures should not completely break libvirt, patch
+         by Dan Berrange, fixes #506590
+
 Fri Jun 26 20:11:38 CEST 2009 Daniel Veillard <veillard@redhat.com>
 
        * src/xend_internal.c: avoid a segfault when dumping XML with recent
index e4863bbbf16fd858afb4d74f98d83abb62b4c9b9..3d918d191d2478ea3c20f9d0f121b1d4cbfadbe4 100644 (file)
@@ -43,6 +43,7 @@
 #include "nodeinfo.h"
 #include "physmem.h"
 #include "util.h"
+#include "logging.h"
 #include "virterror_internal.h"
 
 
@@ -206,8 +207,11 @@ nodeCapsInitNUMA(virCapsPtr caps)
     for (n = 0 ; n <= numa_max_node() ; n++) {
         int i;
         int ncpus;
-        if (numa_node_to_cpus(n, mask, mask_n_bytes) < 0)
-            goto cleanup;
+        if (numa_node_to_cpus(n, mask, mask_n_bytes) < 0) {
+            VIR_WARN("NUMA topology for cell %d of %d not available, ignoring",
+                     n, numa_max_node());
+            continue;
+        }
 
         for (ncpus = 0, i = 0 ; i < max_n_cpus ; i++)
             if (MASK_CPU_ISSET(mask, i))