From: stefano.stabellini@eu.citrix.com Subject: [PATCH 11 of 12] xl: parse maxmem parameter in VM config files Date: Fri, 3 Sep 2010 12:27:55 +0100 Message-ID: <1283513276-899-11-git-send-email-stefano.stabellini@eu.citrix.com> References: Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com Cc: Stefano Stabellini List-Id: xen-devel@lists.xenproject.org Signed-off-by: Stefano Stabellini diff -r 92b36bfe3088 tools/libxl/xl_cmdimpl.c --- a/tools/libxl/xl_cmdimpl.c Thu Sep 02 15:39:48 2010 +0100 +++ b/tools/libxl/xl_cmdimpl.c Thu Sep 02 17:47:23 2010 +0100 @@ -692,6 +692,9 @@ static void parse_config_data(const char 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)) {