]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] vmi: fix highpte
authorZachary Amsden <zach@vmware.com>
Mon, 5 Mar 2007 08:30:37 +0000 (00:30 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Mon, 5 Mar 2007 15:57:52 +0000 (07:57 -0800)
commitb8a5e50fecf467b8a8c4203623621c1de6130792
tree9c132900f5b331570d91df515167776586fb2960
parent2e067fdf4e502784505e2b94afdb4c6cd33051c2
[PATCH] vmi: fix highpte

Provide a PT map hook for HIGHPTE kernels to designate where they are mapping
page tables.  This information is required so the physical address of PTE
updates can be determined; otherwise, the mm layer would have to carry the
physical address all the way to each PTE modification callsite, which is even
more hideous that the macros required to provide the proper hooks.

So lets not mess up arch neutral code to achieve this, but keep the horror in
an #ifdef HIGHPTE in include/asm-i386/pgtable.h.  I had to use macros here
because some types are not yet defined in all the include paths for this
header.

This patch is absolutely required for HIGHPTE kernels to operate properly with
VMI.

Signed-off-by: Zachary Amsden <zach@vmware.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/i386/kernel/paravirt.c
arch/i386/kernel/vmi.c
include/asm-i386/paravirt.h
include/asm-i386/pgtable.h