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>
}
#endif
- d->max_pages = min(max_pages, avail);
+ d->max_pages = min_t(unsigned long, max_pages, UINT_MAX);
return nr_pages;
}