xen: set max_pfn_mapped to the last pfn mapped
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>
Fri, 18 Feb 2011 11:32:40 +0000 (11:32 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sun, 27 Mar 2011 19:00:13 +0000 (12:00 -0700)
commit698c1ea2cde52b8d59c4427eb768abf721e7a5b9
tree8119423d0eb52174c4c6f5f072286da35ec07e85
parentb63ac20ea0853906ad59ea0b71ff2b5a26b3a0d1
xen: set max_pfn_mapped to the last pfn mapped

commit 14988a4d350ce3b41ecad4f63c4f44c56f5ae34d upstream.

Do not set max_pfn_mapped to the end of the initial memory mappings,
that also contain pages that don't belong in pfn space (like the mfn
list).

Set max_pfn_mapped to the last real pfn mapped in the initial memory
mappings that is the pfn backing _end.

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Acked-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
LKML-Reference: <alpine.DEB.2.00.1103171739050.3382@kaball-desktop>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/x86/xen/mmu.c