提交 77cf0390 编写于 作者: D Daniel P. Berrange

Fix NUMA topology error handling (beth kon)

上级 d08b12c1
Thu Oct 4 21:05:59 EST 2007 Daniel P. Berrange <berrange@redhat.com>
* src/xend_internal.c: Fix error handling for NUMA topology
(patch from Beth Kon)
Wed Oct 3 10:13:59 EST 2007 Daniel P. Berrange <berrange@redhat.com> Wed Oct 3 10:13:59 EST 2007 Daniel P. Berrange <berrange@redhat.com>
* po/id.po: Remove bogus Project-Id-Version field from merge error * po/id.po: Remove bogus Project-Id-Version field from merge error
......
...@@ -2006,16 +2006,16 @@ sexpr_to_xend_topology_xml(virConnectPtr conn, struct sexpr *root, virBufferPtr ...@@ -2006,16 +2006,16 @@ sexpr_to_xend_topology_xml(virConnectPtr conn, struct sexpr *root, virBufferPtr
goto error; goto error;
} }
for (i=start; i<=finish && nodeCpuCount<numCpus; i++) { for (i=start; i<=finish; i++) {
*(cpuIdsPtr++) = i;
cellCpuCount++;
nodeCpuCount++; nodeCpuCount++;
}
if (nodeCpuCount > numCpus) { if (nodeCpuCount > numCpus) {
virXendError(conn, VIR_ERR_XEN_CALL, virXendError(conn, VIR_ERR_XEN_CALL,
"conflicting cpu counts"); "conflicting cpu counts");
goto error; goto error;
} }
*(cpuIdsPtr++) = i;
cellCpuCount++;
}
offset += len; offset += len;
next = *(offset); next = *(offset);
offset++; offset++;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册