[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] xl: parse maxmem parameter in VM config files



# HG changeset patch
# User Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>
# Date 1285175051 -3600
# Node ID db340d6e9b06c3b98d6d42a177f6ad2199bd1fd0
# Parent  e01600ac72958f3e90ebcb74f085e940dfd0442e
xl: parse maxmem parameter in VM config files

Signed-off-by: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>
Signed-off-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
---
 tools/libxl/xl_cmdimpl.c |    3 +++
 1 files changed, 3 insertions(+)

diff -r e01600ac7295 -r db340d6e9b06 tools/libxl/xl_cmdimpl.c
--- a/tools/libxl/xl_cmdimpl.c  Wed Sep 22 18:03:41 2010 +0100
+++ b/tools/libxl/xl_cmdimpl.c  Wed Sep 22 18:04:11 2010 +0100
@@ -707,6 +707,9 @@ static void parse_config_data(const char
         b_info->max_memkb = l * 1024;
         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";

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.