]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: KVM: Allow the main HYP code to use the init hyp stub implementation
authorMarc Zyngier <marc.zyngier@arm.com>
Mon, 3 Apr 2017 18:37:55 +0000 (19:37 +0100)
committerChristoffer Dall <cdall@linaro.org>
Sun, 9 Apr 2017 14:49:29 +0000 (07:49 -0700)
commit5e16de96df30f4b0300080b7ea5659dcb4177281
treebfb19775358775f0c407268572006dfc5370cdda
parent636cf953a77adb78018a91a99662d3227b5759d0
ARM: KVM: Allow the main HYP code to use the init hyp stub implementation

We now have a full hyp-stub implementation in the KVM init code,
but the main KVM code only supports HVC_GET_VECTORS, which is not
enough.

Instead of reinventing the wheel, let's reuse the init implementation
by branching to the idmap page when called with a hyp-stub hypercall.

Tested-by: Keerthy <j-keerthy@ti.com>
Acked-by: Russell King <rmk+kernel@armlinux.org.uk>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Christoffer Dall <cdall@linaro.org>
arch/arm/kvm/hyp/hyp-entry.S