]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xen: release all pages within 1-1 p2m mappings
authorDavid Vrabel <david.vrabel@citrix.com>
Wed, 28 Sep 2011 16:46:36 +0000 (17:46 +0100)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Fri, 11 May 2012 18:11:51 +0000 (14:11 -0400)
commit2a22c6a3325e71f2226491d2e9ca66e69e19bc6e
treee3cb4af55ca2ac49b064b86b8d13f6443da29f00
parentffc5844b31cda7e1cc619d4b2cfe8c114941453c
xen: release all pages within 1-1 p2m mappings

In xen_memory_setup() all reserved regions and gaps are set to an
identity (1-1) p2m mapping.  If an available page has a PFN within one
of these 1-1 mappings it will become inaccessible (as it MFN is lost)
so release them before setting up the mapping.

This can make an additional 256 MiB or more of RAM available
(depending on the size of the reserved regions in the memory map) if
the initial pages overlap with reserved regions.

The 1:1 p2m mappings are also extended to cover partial pages.  This
fixes an issue with (for example) systems with a BIOS that puts the
DMI tables in a reserved region that begins on a non-page boundary.

[upstream git commit f3f436e]
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
arch/x86/xen/setup.c