tools/libxl: Introduce LIBXL_CPUPOOL_POOLID_ANY
authorGeorge Dunlap <george.dunlap@citrix.com>
Wed, 15 Feb 2017 17:08:11 +0000 (17:08 +0000)
committerWei Liu <wei.liu2@citrix.com>
Thu, 16 Feb 2017 12:47:12 +0000 (12:47 +0000)
commit7127d53fe891f9ea67357587a33a7aaba4b55f45
tree505ed25e557139ac9ee9425cb12742a96d85684b
parentf5cfc3955ec1559ef7f9979dd7b98659d4be5e98
tools/libxl: Introduce LIBXL_CPUPOOL_POOLID_ANY

Callers to libxl_cpupool_create() can either request a specific pool
id, or request that Xen do it for them.  But at the moment, the
"automatic" selection is indicated by using a magic value, 0.  This is
undesirable both because it doesn't obviously have meaning, but also
because '0' is a valid cpupool (albeit one which at the moment can't
be changed).

Introduce a constant, LIBXL_CPUPOOL_POOLID_ANY, to indicate this
instead.  Still accept '0' as meaning "ANY" for backwards
compatibility.

Signed-off-by: George Dunlap <george.dunlap@citrix.com>
Reviewed-by: Dario Faggioli <dario.faggioli@citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
[ wei: removed two trailing spaces ]
Signed-off-by: Wei Liu <wei.liu2@citrix.com>
tools/libxl/libxl.h
tools/libxl/libxl_cpupool.c
tools/libxl/xl_cmdimpl.c