mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
xl: parse maxmem parameter in VM config files
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
ceb6e18f15
commit
2b989e000b
1 file changed
+3
@@ -708,6 +708,9 @@ static void parse_config_data(const char *configfile_filename_report,
|
||||
b_info->target_memkb = b_info->max_memkb;
|
||||
}
|
||||
|
||||
if (!xlu_cfg_get_long (config, "maxmem", &l))
|
||||
b_info->max_memkb = l * 1024;
|
||||
|
||||
if (xlu_cfg_get_string (config, "on_poweroff", &buf))
|
||||
buf = "destroy";
|
||||
if (!parse_action_on_shutdown(buf, &d_config->on_poweroff)) {
|
||||
|
||||