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

[Xen-changelog] [xen-unstable] x86: don't limit dom0's maximum reservation by the available memory



# HG changeset patch
# User David Vrabel <david.vrabel@xxxxxxxxxx>
# Date 1314174790 -3600
# Node ID 1515138fbd7b31a508361e31040a8b163325e50b
# Parent  1b77cf8305df0fa27acd0701f6dfbf5acbffb238
x86: don't limit dom0's maximum reservation by the available memory

Set dom0's initial maximum reservation using the max value supplied in
the dom0_mem command line option without limiting it by the available
memory.

This allows dom0 to make use of any hotplugged memory without having
to also adjust the maximum reservation.

Signed-off-by: David Vrabel <david.vrabel@xxxxxxxxxx>
Acked-by: Jan Beulich <jbeulich@xxxxxxxxxx>
---


diff -r 1b77cf8305df -r 1515138fbd7b xen/arch/x86/domain_build.c
--- a/xen/arch/x86/domain_build.c       Tue Aug 23 10:54:27 2011 +0100
+++ b/xen/arch/x86/domain_build.c       Wed Aug 24 09:33:10 2011 +0100
@@ -254,7 +254,7 @@
     }
 #endif
 
-    d->max_pages = min(max_pages, avail);
+    d->max_pages = min_t(unsigned long, max_pages, UINT_MAX);
 
     return nr_pages;
 }

_______________________________________________
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®.