aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxl/libxl_utils.c
diff options
context:
space:
mode:
authorJuergen Gross <juergen.gross@ts.fujitsu.com>2010-10-21 18:32:56 +0100
committerJuergen Gross <juergen.gross@ts.fujitsu.com>2010-10-21 18:32:56 +0100
commit63c5ef9841fad351e94f8c2e281c75aedb31ebad (patch)
treea469e97a0ab384e4214eda20ac858404d8fde008 /tools/libxl/libxl_utils.c
parentcc0b2bf9de6871cb951fccd4c4e860f08c15e2ec (diff)
downloadxen-63c5ef9841fad351e94f8c2e281c75aedb31ebad.tar.gz
xen-63c5ef9841fad351e94f8c2e281c75aedb31ebad.tar.bz2
xen-63c5ef9841fad351e94f8c2e281c75aedb31ebad.zip
tools: cpupools: Support arbitrary numbers of physical cpus
To be able to support arbitrary numbers of physical cpus it was necessary to include the size of cpumaps in the xc-interfaces for cpu pools. These were: definition of xc_cpupoolinfo_t xc_cpupool_getinfo() xc_cpupool_freeinfo() xc_cpupool_getinfo() and xc_cpupool_freeinfo() are changed to allocate the needed buffer and return it. Signed-off-by: juergen.gross@ts.fujitsu.com Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Diffstat (limited to 'tools/libxl/libxl_utils.c')
-rw-r--r--tools/libxl/libxl_utils.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/libxl/libxl_utils.c b/tools/libxl/libxl_utils.c
index 8cb506187b..5792de8b9a 100644
--- a/tools/libxl/libxl_utils.c
+++ b/tools/libxl/libxl_utils.c
@@ -675,3 +675,8 @@ out:
libxl__free_all(&gc);
return rc;
}
+
+int libxl_get_max_cpus(libxl_ctx *ctx)
+{
+ return xc_get_max_cpus(ctx->xch);
+}