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

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



# HG changeset patch
# User David Vrabel <david.vrabel@xxxxxxxxxx>
# Date 1314174894 -3600
# Node ID c7702b73f3823512864a39380799bf643f0312bf
# Parent  473d6cd9dddf1e573dfc129b7bc055e3e71a489f
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>
xen-unstable changeset:   23790:1515138fbd7b
xen-unstable date:        Wed Aug 24 09:33:10 2011 +0100
---


diff -r 473d6cd9dddf -r c7702b73f382 xen/arch/x86/domain_build.c
--- a/xen/arch/x86/domain_build.c       Mon Aug 22 10:16:15 2011 +0100
+++ b/xen/arch/x86/domain_build.c       Wed Aug 24 09:34:54 2011 +0100
@@ -253,7 +253,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®.