Mailing List Archive

[xen-unstable] xl: fix broken cpupool-numa-split (part 2)
# HG changeset patch
# User Andre Przywara <andre.przywara@amd.com>
# Date 1296587227 0
# Node ID 0e2c8b75f7d233f15f8bb49d9db0579e7a350964
# Parent 0db82ae4b4469eee91e59237691d3095dd6b75a6
xl: fix broken cpupool-numa-split (part 2)

Before the creation and population of a new CPU pool we have to clear
the poolid variable, which still contains the value from the previous
iteration.

This fixes the execution of xl cpupool-numa-split on machines with more
than two nodes.

Signed-off-by: Andre Przywara <andre.przywara@amd.com>
Acked-by: juergen.gross@ts.fujitsu.com
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
---
tools/libxl/xl_cmdimpl.c | 1 +
1 files changed, 1 insertion(+)

diff -r 0db82ae4b446 -r 0e2c8b75f7d2 tools/libxl/xl_cmdimpl.c
--- a/tools/libxl/xl_cmdimpl.c Tue Feb 01 19:05:51 2011 +0000
+++ b/tools/libxl/xl_cmdimpl.c Tue Feb 01 19:07:07 2011 +0000
@@ -5814,6 +5814,7 @@ int main_cpupoolnumasplit(int argc, char

snprintf(name, 15, "Pool-node%d", node);
libxl_uuid_generate(&uuid);
+ poolid = 0;
ret = -libxl_create_cpupool(&ctx, name, schedid, cpumap, &uuid, &poolid);
if (ret) {
fprintf(stderr, "error on creating cpupool\n");

_______________________________________________
Xen-changelog mailing list
Xen-changelog@lists.xensource.com
http://lists.xensource.com/xen-changelog