summaryrefslogtreecommitdiffstats
path: root/arch/arm/include/asm/idmap.h
diff options
context:
space:
mode:
authorChristoffer Dall <c.dall@virtualopensystems.com>2013-01-21 00:43:10 +0100
committerChristoffer Dall <c.dall@virtualopensystems.com>2013-01-23 19:29:09 +0100
commit9e9a367c29cebd25a356d53414612e115efdadcf (patch)
treecca8b98c33597179e5cbc50118b1cf86e6299ed0 /arch/arm/include/asm/idmap.h
parentARM: Add page table and page defines needed by KVM (diff)
downloadlinux-9e9a367c29cebd25a356d53414612e115efdadcf.tar.xz
linux-9e9a367c29cebd25a356d53414612e115efdadcf.zip
ARM: Section based HYP idmap
Add a method (hyp_idmap_setup) to populate a hyp pgd with an identity mapping of the code contained in the .hyp.idmap.text section. Offer a method to drop this identity mapping through hyp_idmap_teardown. Make all the above depend on CONFIG_ARM_VIRT_EXT and CONFIG_ARM_LPAE. Reviewed-by: Will Deacon <will.deacon@arm.com> Reviewed-by: Marcelo Tosatti <mtosatti@redhat.com> Signed-off-by: Marc Zyngier <marc.zyngier@arm.com> Signed-off-by: Christoffer Dall <c.dall@virtualopensystems.com>
Diffstat (limited to 'arch/arm/include/asm/idmap.h')
-rw-r--r--arch/arm/include/asm/idmap.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/include/asm/idmap.h b/arch/arm/include/asm/idmap.h
index bf863edb517d..1a66f907e5cc 100644
--- a/arch/arm/include/asm/idmap.h
+++ b/arch/arm/include/asm/idmap.h
@@ -8,6 +8,7 @@
#define __idmap __section(.idmap.text) noinline notrace
extern pgd_t *idmap_pgd;
+extern pgd_t *hyp_pgd;
void setup_mm_for_reboot(void);