diff options
author | Yang Zhang <yang.z.zhang@Intel.com> | 2012-06-28 17:47:13 +0100 |
---|---|---|
committer | Yang Zhang <yang.z.zhang@Intel.com> | 2012-06-28 17:47:13 +0100 |
commit | 928c75ce59fc11c707b8bfd0b99ce0c07ab89926 (patch) | |
tree | ac46f583868400516b25bba67a19915c7888df1c /tools/libxl/libxl_utils.h | |
parent | 8f7e8f7b56f62eb7fe7d459424b9f56466faaefb (diff) | |
download | xen-928c75ce59fc11c707b8bfd0b99ce0c07ab89926.tar.gz xen-928c75ce59fc11c707b8bfd0b99ce0c07ab89926.tar.bz2 xen-928c75ce59fc11c707b8bfd0b99ce0c07ab89926.zip |
libxl: allow to allocate cpumap with specific size
Currently, libxl_cpumap_alloc()allocate the cpumap with size of number
of physical cpus. In some place, we may want to allocate specific size
of cpumap. This patch allow to pass a argument to specific the size
that you want to allocate. If pass 0, it means the size is equal to
number of physical cpus.
Signed-off-by: Yang Zhang <yang.z.zhang@Intel.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
Diffstat (limited to 'tools/libxl/libxl_utils.h')
-rw-r--r-- | tools/libxl/libxl_utils.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/libxl/libxl_utils.h b/tools/libxl/libxl_utils.h index 74beb52a67..7ab0c0915c 100644 --- a/tools/libxl/libxl_utils.h +++ b/tools/libxl/libxl_utils.h @@ -63,7 +63,7 @@ int libxl_devid_to_device_nic(libxl_ctx *ctx, uint32_t domid, int devid, int libxl_vdev_to_device_disk(libxl_ctx *ctx, uint32_t domid, const char *vdev, libxl_device_disk *disk); -int libxl_cpumap_alloc(libxl_ctx *ctx, libxl_cpumap *cpumap); +int libxl_cpumap_alloc(libxl_ctx *ctx, libxl_cpumap *cpumap, int max_cpus); int libxl_cpumap_test(libxl_cpumap *cpumap, int cpu); void libxl_cpumap_set(libxl_cpumap *cpumap, int cpu); void libxl_cpumap_reset(libxl_cpumap *cpumap, int cpu); |