]> asedeno.scripts.mit.edu Git - linux.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)
commit47eb3cba48ec11122994057cdc1e5dd7ab9b2be2
tree99e175ad8800012f0594d258f12c7c4b6a0b43b9
parent9e9ebd01a353b1f8986ced524e30cf5eee6aa08e
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