arm64: hyp-stub: Implement HVC_RESET_VECTORS stub hypercall
authorMarc Zyngier <marc.zyngier@arm.com>
Mon, 3 Apr 2017 18:37:39 +0000 (19:37 +0100)
committerChristoffer Dall <cdall@linaro.org>
Sun, 9 Apr 2017 14:49:20 +0000 (07:49 -0700)
commitfd0e0c617089e7ba8333c55bd2e318dfc128bf33
tree06b1b4d4fafeda0c6670b4b2c1ec4d52e8707bdd
parent810c86ee4ee70928952fe17bc593d569052d8198
arm64: hyp-stub: Implement HVC_RESET_VECTORS stub hypercall

Let's define a new stub hypercall that resets the HYP configuration
to its default: hyp-stub vectors, and MMU disabled.

Of course, for the hyp-stub itself, this is a trivial no-op.
Hypervisors will have a bit more work to do.

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/include/asm/virt.h
arch/arm64/kernel/hyp-stub.S