]> rtime.felk.cvut.cz Git - linux-imx.git/commit
xen: partially revert "xen: set max_pfn_mapped to the last pfn mapped"
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>
Fri, 3 Jun 2011 09:51:34 +0000 (09:51 +0000)
committerAndi Kleen <ak@linux.intel.com>
Mon, 1 Aug 2011 20:54:57 +0000 (13:54 -0700)
commite80440bb851ed3378b9855dd2bc9a3763eef48f1
treed9ce0ef6040c71d37480d5512c0c62ea709d6834
parenta67f6f3794586c33e430d8a8e61d0548d33a3abe
xen: partially revert "xen: set max_pfn_mapped to the last pfn mapped"

commit a91d92875ee94e4703fd017ccaadb48cfb344994 upstream.

We only need to set max_pfn_mapped to the last pfn mapped on x86_64 to
make sure that cleanup_highmap doesn't remove important mappings at
_end.

We don't need to do this on x86_32 because cleanup_highmap is not called
on x86_32. Besides lowering max_pfn_mapped on x86_32 has the unwanted
side effect of limiting the amount of memory available for the 1:1
kernel pagetable allocation.

This patch reverts the x86_32 part of the original patch.

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
arch/x86/xen/mmu.c