aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/libxl/xl_cmdimpl.c3
1 files changed, 3 insertions, 0 deletions
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;