]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9dcd9914d3ab11f7b2ecd521c09198010a28fadc
tree30c7c23619a2d006b27f0f2046407dd5e72eac92
parent859407df9b55f7c6dc51c813caa3a0ebcd1f33dc
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