]> 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)
commit215d5f90c0b139029a7b81beb402a85eb8c9be74
tree99e175ad8800012f0594d258f12c7c4b6a0b43b9
parent4e82756879bc8ab3b816e4f230c943bf3c0194cf
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