]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: arm64: Save chosen hyp vector to a percpu variable
authorAndrew Scull <ascull@google.com>
Tue, 15 Sep 2020 10:46:29 +0000 (11:46 +0100)
committerMarc Zyngier <maz@kernel.org>
Tue, 15 Sep 2020 17:39:02 +0000 (18:39 +0100)
commit4ea16d6a7eb06c5e40eae2f438563029e888aa2e
tree86b3fcf0c984652765e85c0ca027c6cdcfeae2e8
parent1fc1a57ba3b02682dda5b37fc4a45ab34888f202
KVM: arm64: Save chosen hyp vector to a percpu variable

Introduce a percpu variable to hold the address of the selected hyp
vector that will be used with guests. This avoids the selection process
each time a guest is being entered and can be used by nVHE when a
separate vector is introduced for the host.

Signed-off-by: Andrew Scull <ascull@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20200915104643.2543892-6-ascull@google.com
arch/arm64/include/asm/kvm_hyp.h
arch/arm64/kvm/arm.c
arch/arm64/kvm/hyp/vhe/switch.c