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>
Showing
- arch/arm/include/asm/idmap.h 1 addition, 0 deletionsarch/arm/include/asm/idmap.h
- arch/arm/include/asm/pgtable-3level-hwdef.h 1 addition, 0 deletionsarch/arm/include/asm/pgtable-3level-hwdef.h
- arch/arm/kernel/vmlinux.lds.S 5 additions, 1 deletionarch/arm/kernel/vmlinux.lds.S
- arch/arm/mm/idmap.c 44 additions, 11 deletionsarch/arm/mm/idmap.c
Loading
Please register or sign in to comment