]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: KVM: Implement HVC_RESET_VECTORS stub hypercall in the init code
authorMarc Zyngier <marc.zyngier@arm.com>
Mon, 3 Apr 2017 18:37:53 +0000 (19:37 +0100)
committerChristoffer Dall <cdall@linaro.org>
Sun, 9 Apr 2017 14:49:28 +0000 (07:49 -0700)
commit973f51951f666a2b7ea8f35f5a28ee03bf3fbb2c
tree4e5c44a617dfdde8e7d71c02800172f6b36d38bf
parent45481dfe3276f64a386b4476161528da82450929
ARM: KVM: Implement HVC_RESET_VECTORS stub hypercall in the init code

In order to restore HYP mode to its original condition, KVM currently
implements __kvm_hyp_reset(). As we're moving towards a hyp-stub
defined API, it becomes necessary to implement HVC_RESET_VECTORS.

This patch adds the HVC_RESET_VECTORS hypercall to the KVM init
code, which so far lacked any form of hypercall support.

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