mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
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>
This commit is contained in:
1 parent
86b51bace5
commit
7497632508
1 file changed
+3
@@ -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;
|
||||
|
||||