]> git.karo-electronics.de Git - karo-tx-linux.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)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Thu, 17 May 2012 15:20:56 +0000 (11:20 -0400)
commit5cd58d69c1e8df75d70be60e8b77fdb2090102fb
tree81f69fabc57db09f90bcc5d1a41bff56e29af3a2
parentbf7356dc949e1f990a65423ce4ce3cce6f56f559
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: Paul Gortmaker <paul.gortmaker@windriver.com>
arch/x86/xen/mmu.c