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)
committerAlex Shi <alex.shi@linaro.org>
Wed, 9 Nov 2016 14:15:47 +0000 (22:15 +0800)
commit38ddb602f47ae9790eefb71630104e016649f3d7
tree28b577beda2623624ce3385effc4aa57b1f4130a
parenteccbe96e1fc0d89088bfac7ddf762f108e2ce94c
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>
(cherry picked from commit 910917bb7db070cc67557a6b3c8fcceaa5c398a7)
Signed-off-by: Alex Shi <alex.shi@linaro.org>
arch/arm/kvm/arm.c