ARM: KVM: allow HYP mappings to be at an offset from kernel mappings
authorMarc Zyngier <marc.zyngier@arm.com>
Sun, 28 Oct 2012 00:09:14 +0000 (01:09 +0100)
committerChristoffer Dall <cdall@cs.columbia.edu>
Wed, 6 Mar 2013 23:48:44 +0000 (15:48 -0800)
commit06e8c3b0f3210e5e7039fd2b5e3926b68df7f5d7
tree99ad1af05824cc65a5ded6764f6ef8a2eb40be17
parent9c7a6432fb081563f084b25bbd2774b1547c4fad
ARM: KVM: allow HYP mappings to be at an offset from kernel mappings

arm64 cannot represent the kernel VAs in HYP mode, because of the lack
of TTBR1 at EL2. A way to cope with this situation is to have HYP VAs
to be an offset from the kernel VAs.

Introduce macros to convert a kernel VA to a HYP VA, make the HYP
mapping functions use these conversion macros. Also change the
documentation to reflect the existence of the offset.

On ARM, where we can have an identity mapping between kernel and HYP,
the macros are without any effect.

Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
arch/arm/include/asm/kvm_mmu.h
arch/arm/kvm/mmu.c
This page took 0.027434 seconds and 5 git commands to generate.