arm64: KVM: Map the kernel RO section into HYP
authorMarc Zyngier <marc.zyngier@arm.com>
Tue, 27 Oct 2015 12:18:48 +0000 (12:18 +0000)
committerMarc Zyngier <marc.zyngier@arm.com>
Mon, 14 Dec 2015 11:30:43 +0000 (11:30 +0000)
commit910917bb7db070cc67557a6b3c8fcceaa5c398a7
tree86716f40661c3a9a503a0a47b398169d6eb77e46
parent044ac37d1281fc7b59d5dce4fe979a99369e95f2
arm64: KVM: Map the kernel RO section into HYP

In order to run C code in HYP, we must make sure that the kernel's
RO section is mapped into HYP (otherwise things break badly).

Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Acked-by: Christoffer Dall <christoffer.dall@linaro.org>
arch/arm/kvm/arm.c