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:
Stefano Stabellini committed 2010-09-02 17:44:46 +01:00
1 parent 86b51bace5
commit 7497632508
1 file changed
+3
+3
View File
@@ -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;
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.