xen: partially revert "xen: set max_pfn_mapped to the last pfn mapped"
commita91d92875ee94e4703fd017ccaadb48cfb344994
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>
Fri, 3 Jun 2011 09:51:34 +0000 (3 09:51 +0000)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Thu, 9 Jun 2011 13:08:53 +0000 (9 09:08 -0400)
tree60028033704c83b1ceef8b2fb872d2c94a26ed0d
parentf124c6ae59e193705c9ddac57684d50006d710e6
xen: partially revert "xen: set max_pfn_mapped to the last pfn mapped"

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.

CC: stable@kernel.org
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
arch/x86/xen/mmu.c