[PATCH] i386: PARAVIRT: Add pagetable accessors to pack and unpack pagetable entries
authorJeremy Fitzhardinge <jeremy@goop.org>
Wed, 2 May 2007 17:27:13 +0000 (19:27 +0200)
committerAndi Kleen <andi@basil.nowhere.org>
Wed, 2 May 2007 17:27:13 +0000 (19:27 +0200)
commit3dc494e86d1c93afd4c66385f270899dbfae483d
tree6583b57492dc91ef7cc6c23a233f7d5bb95bb5f6
parent45876233605c268e929a7875081e129debe34bdc
[PATCH] i386: PARAVIRT: Add pagetable accessors to pack and unpack pagetable entries

Add a set of accessors to pack, unpack and modify page table entries
(at all levels).  This allows a paravirt implementation to control the
contents of pgd/pmd/pte entries.  For example, Xen uses this to
convert the (pseudo-)physical address into a machine address when
populating a pagetable entry, and converting back to pphys address
when an entry is read.

Signed-off-by: Jeremy Fitzhardinge <jeremy@xensource.com>
Signed-off-by: Andi Kleen <ak@suse.de>
Acked-by: Ingo Molnar <mingo@elte.hu>
arch/i386/kernel/paravirt.c
arch/i386/kernel/vmi.c
include/asm-i386/page.h
include/asm-i386/paravirt.h
include/asm-i386/pgtable-2level.h
include/asm-i386/pgtable-3level.h
include/asm-i386/pgtable.h