aboutsummaryrefslogtreecommitdiffstats
path: root/xen/arch/x86/domain_build.c
diff options
context:
space:
mode:
authorDavid Vrabel <david.vrabel@citrix.com>2011-08-24 09:33:10 +0100
committerDavid Vrabel <david.vrabel@citrix.com>2011-08-24 09:33:10 +0100
commite675405f3a70c6497596b4060ee2805e787a4b90 (patch)
treef9917f1f57f32e4adcba2a2c8cc6387ad22e5bec /xen/arch/x86/domain_build.c
parent91326b5491174ff4cbd36a98367b1bc7c378bd29 (diff)
downloadxen-e675405f3a70c6497596b4060ee2805e787a4b90.tar.gz
xen-e675405f3a70c6497596b4060ee2805e787a4b90.tar.bz2
xen-e675405f3a70c6497596b4060ee2805e787a4b90.zip
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@citrix.com> Acked-by: Jan Beulich <jbeulich@novell.com>
Diffstat (limited to 'xen/arch/x86/domain_build.c')
-rw-r--r--xen/arch/x86/domain_build.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xen/arch/x86/domain_build.c b/xen/arch/x86/domain_build.c
index f818f0b876..a2cebb7c21 100644
--- a/xen/arch/x86/domain_build.c
+++ b/xen/arch/x86/domain_build.c
@@ -254,7 +254,7 @@ static unsigned long __init compute_dom0_nr_pages(
}
#endif
- d->max_pages = min(max_pages, avail);
+ d->max_pages = min_t(unsigned long, max_pages, UINT_MAX);
return nr_pages;
}