diff options
author | Stefano Stabellini <stefano.stabellini@eu.citrix.com> | 2010-09-02 17:44:46 +0100 |
---|---|---|
committer | Stefano Stabellini <stefano.stabellini@eu.citrix.com> | 2010-09-02 17:44:46 +0100 |
commit | 7497632508eb0574bccb5418339ceb38131dae2f (patch) | |
tree | 1f5caa15f2adc602f48ca422231e1bf024768e92 /tools | |
parent | 86b51bace51f4aabe1b0d56e36c28dd7a1187aba (diff) | |
download | xen-7497632508eb0574bccb5418339ceb38131dae2f.tar.gz xen-7497632508eb0574bccb5418339ceb38131dae2f.tar.bz2 xen-7497632508eb0574bccb5418339ceb38131dae2f.zip |
xl: parse the maxvcpus config file parameter
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/libxl/xl_cmdimpl.c | 3 |
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; |