arm64: 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:42 +0000 (19:37 +0100)
committerChristoffer Dall <cdall@linaro.org>
Sun, 9 Apr 2017 14:49:22 +0000 (07:49 -0700)
commit5fbe9a599a30940c10ede35f90eb7014a6c2ed70
tree30c7c23619a2d006b27f0f2046407dd5e72eac92
parent82529d9bfd6b7b0e8177be94ff768161d5064264
arm64: 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.

Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Reviewed-by: James Morse <james.morse@arm.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Christoffer Dall <cdall@linaro.org>
arch/arm64/kvm/hyp/hyp-entry.S