[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] xend: Don't allow dom0 memory to be ballooned below dom0-min-mem
# HG changeset patch # User Keir Fraser <keir.fraser@xxxxxxxxxx> # Date 1207430730 -3600 # Node ID e8f058b99171429611a74df358d85246121be228 # Parent 61a3e041ea12eae7102c4a90f409a6a42edae79b xend: Don't allow dom0 memory to be ballooned below dom0-min-mem configuration parameter. Signed-off-by: Masaki Kanno <kanno.masaki@xxxxxxxxxxxxxx> --- tools/python/xen/xend/XendDomainInfo.py | 7 +++++++ 1 files changed, 7 insertions(+) diff -r 61a3e041ea12 -r e8f058b99171 tools/python/xen/xend/XendDomainInfo.py --- a/tools/python/xen/xend/XendDomainInfo.py Sat Apr 05 22:21:42 2008 +0100 +++ b/tools/python/xen/xend/XendDomainInfo.py Sat Apr 05 22:25:30 2008 +0100 @@ -986,6 +986,13 @@ class XendDomainInfo: self.info['name_label'], str(self.domid), target) MiB = 1024 * 1024 + + if self.domid == 0: + dom0_min_mem = xoptions.get_dom0_min_mem() + memory_cur = self.get_memory_dynamic_max() / MiB + if target < memory_cur and dom0_min_mem > target: + raise XendError("memory_dynamic_max too small") + self._safe_set_memory('memory_dynamic_min', target * MiB) self._safe_set_memory('memory_dynamic_max', target * MiB) _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |