debuggers.hg

changeset 22883:b58c9dd4ba90

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 <andre.przywara@amd.com>
Signed-off-by: Juergen Gross <juergen.gross@ts.fujitsu.com>
Acked-by: George Dunlap <george.dunlap@citrix.com>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
author Juergen Gross <juergen.gross@ts.fujitsu.com>
date Fri Jan 28 17:41:15 2011 +0000 (2011-01-28)
parents 2831c5c08df9
children aab67c1c6b87
files tools/libxl/xl_cmdimpl.c
line diff
     1.1 --- a/tools/libxl/xl_cmdimpl.c	Fri Jan 28 16:54:13 2011 +0000
     1.2 +++ b/tools/libxl/xl_cmdimpl.c	Fri Jan 28 17:41:15 2011 +0000
     1.3 @@ -5825,7 +5825,7 @@ int main_cpupoolnumasplit(int argc, char
     1.4              goto out;
     1.5          }
     1.6  
     1.7 -        ret = -libxl_cpupool_cpuadd_node(&ctx, 0, node, &n);
     1.8 +        ret = -libxl_cpupool_cpuadd_node(&ctx, poolid, node, &n);
     1.9          if (ret) {
    1.10              fprintf(stderr, "error on adding cpus to cpupool\n");
    1.11              goto out;