]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xen: allow extra memory to be in multiple regions
authorDavid Vrabel <david.vrabel@citrix.com>
Thu, 29 Sep 2011 11:26:19 +0000 (12:26 +0100)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Fri, 11 May 2012 18:08:55 +0000 (14:08 -0400)
commitffc5844b31cda7e1cc619d4b2cfe8c114941453c
treec9193b021a90d8516a93d6338dede03303c0ab37
parentccedf0cab7b23cce3253622dfb436d8d5bf511c6
xen: allow extra memory to be in multiple regions

Allow the extra memory (used by the balloon driver) to be in multiple
regions (typically two regions, one for low memory and one for high
memory).  This allows the balloon driver to increase the number of
available low pages (if the initial number if pages is small).

As a side effect, the algorithm for building the e820 memory map is
simpler and more obviously correct as the map supplied by the
hypervisor is (almost) used as is (in particular, all reserved regions
and gaps are preserved).  Only RAM regions are altered and RAM regions
above max_pfn + extra_pages are marked as unused (the region is split
in two if necessary).

[upstream git commit dc91c72]
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Conflicts:

arch/x86/xen/setup.c
arch/x86/xen/setup.c