From 7497632508eb0574bccb5418339ceb38131dae2f Mon Sep 17 00:00:00 2001 From: Stefano Stabellini Date: Thu, 2 Sep 2010 17:44:46 +0100 Subject: xl: parse the maxvcpus config file parameter Signed-off-by: Stefano Stabellini Signed-off-by: Ian Jackson --- tools/libxl/xl_cmdimpl.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tools') diff --git a/tools/libxl/xl_cmdimpl.c b/tools/libxl/xl_cmdimpl.c index 3e401649ba..9ed1fefd04 100644 --- a/tools/libxl/xl_cmdimpl.c +++ b/tools/libxl/xl_cmdimpl.c @@ -627,6 +627,9 @@ static void parse_config_data(const char *configfile_filename_report, b_info->cur_vcpus = (1 << l) - 1; } + if (!xlu_cfg_get_long (config, "maxvcpus", &l)) + b_info->max_vcpus = l; + if (!xlu_cfg_get_long (config, "memory", &l)) { b_info->max_memkb = l * 1024; b_info->target_memkb = b_info->max_memkb; -- cgit v1.2.3