From 852c37f5a82e271f51c9e47c5c5f855c8a45d06b Mon Sep 17 00:00:00 2001 From: Juergen Gross Date: Fri, 28 Jan 2011 17:41:15 +0000 Subject: [PATCH] xl: fix broken cpupool-numa-split The implementation of xl cpupool-numa-split is broken. It adds nodes to the wrong pool. This was probably a copy and paste error which happened when libxl_cpupool_cpuadd_node() was introduced. Reported-by: Andre Przywara Signed-off-by: Juergen Gross Acked-by: George Dunlap Committed-by: Ian Jackson --- tools/libxl/xl_cmdimpl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/libxl/xl_cmdimpl.c b/tools/libxl/xl_cmdimpl.c index 5826755ee6..eded63700e 100644 --- a/tools/libxl/xl_cmdimpl.c +++ b/tools/libxl/xl_cmdimpl.c @@ -5825,7 +5825,7 @@ int main_cpupoolnumasplit(int argc, char **argv) goto out; } - ret = -libxl_cpupool_cpuadd_node(&ctx, 0, node, &n); + ret = -libxl_cpupool_cpuadd_node(&ctx, poolid, node, &n); if (ret) { fprintf(stderr, "error on adding cpus to cpupool\n"); goto out; -- 2.39.5