提交 ecd93716 编写于 作者: D Daniel Veillard

* src/nodeinfo.c: sometimes libnuma can't handle some topologies,

  but those failures should not completely break libvirt, patch
  by Dan Berrange, fixes #506590
daniel
上级 14435163
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
......
......@@ -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))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册