debuggers.hg

changeset 22252:db340d6e9b06

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>
author Stefano Stabellini <stefano.stabellini@eu.citrix.com>
date Wed Sep 22 18:04:11 2010 +0100 (2010-09-22)
parents e01600ac7295
children 20f139010445
files tools/libxl/xl_cmdimpl.c
line diff
     1.1 --- a/tools/libxl/xl_cmdimpl.c	Wed Sep 22 18:03:41 2010 +0100
     1.2 +++ b/tools/libxl/xl_cmdimpl.c	Wed Sep 22 18:04:11 2010 +0100
     1.3 @@ -708,6 +708,9 @@ static void parse_config_data(const char
     1.4          b_info->target_memkb = b_info->max_memkb;
     1.5      }
     1.6  
     1.7 +    if (!xlu_cfg_get_long (config, "maxmem", &l))
     1.8 +        b_info->max_memkb = l * 1024;
     1.9 +
    1.10      if (xlu_cfg_get_string (config, "on_poweroff", &buf))
    1.11          buf = "destroy";
    1.12      if (!parse_action_on_shutdown(buf, &d_config->on_poweroff)) {