]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: arm64: Move common VHE/non-VHE trap config in separate functions
authorChristoffer Dall <christoffer.dall@linaro.org>
Fri, 4 Aug 2017 06:50:25 +0000 (08:50 +0200)
committerMarc Zyngier <marc.zyngier@arm.com>
Mon, 19 Mar 2018 10:53:19 +0000 (10:53 +0000)
commit20400e4819674e95a0b32c8a8f04269dea293c5f
treeab02bfb451f4b04e74de22949effe9725acff6f4
parent3cfbd8547c558a8074104c47c3202edd884a538e
KVM: arm64: Move common VHE/non-VHE trap config in separate functions

As we are about to be more lazy with some of the trap configuration
register read/writes for VHE systems, move the logic that is currently
shared between VHE and non-VHE into a separate function which can be
called from either the world-switch path or from vcpu_load/vcpu_put.

Reviewed-by: Marc Zyngier <marc.zyngier@arm.com>
Reviewed-by: Andrew Jones <drjones@redhat.com>
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
arch/arm64/kvm/hyp/switch.c