]> git.baikalelectronics.ru Git - kernel.git/commit
arm/arm64: KVM: Use HVC_RESET_VECTORS to reinit HYP mode
authorMarc Zyngier <marc.zyngier@arm.com>
Mon, 3 Apr 2017 18:38:01 +0000 (19:38 +0100)
committerChristoffer Dall <cdall@linaro.org>
Sun, 9 Apr 2017 14:49:33 +0000 (07:49 -0700)
commitd91755e35a0c0924f251834b3e94af9e2a74ebc1
tree99e175ad8800012f0594d258f12c7c4b6a0b43b9
parent997ffe04781fd59d468c953fd389e523dc9e8b32
arm/arm64: KVM: Use HVC_RESET_VECTORS to reinit HYP mode

Instead of trying to compare the value given by __hyp_get_vectors(),
which doesn't offer any real guarantee to be the stub's address, use
HVC_RESET_VECTORS to make sure we're in a sane state to reinstall
KVM across PM events.

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/arm.c