]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: arm64: nv: Accelerate EL0 timer read accesses when FEAT_ECV in use
authorMarc Zyngier <maz@kernel.org>
Tue, 17 Dec 2024 14:23:13 +0000 (14:23 +0000)
committerMarc Zyngier <maz@kernel.org>
Thu, 2 Jan 2025 19:19:09 +0000 (19:19 +0000)
commit338f8ea51944d02ea29eadb3d5fa9196e74a100d
treeea99c5a6a28f4191a96420e7929a84fb4ba596da
parent2cd2a77f9c32f1eaf599fb72cbcd0394938a8b58
KVM: arm64: nv: Accelerate EL0 timer read accesses when FEAT_ECV in use

Although FEAT_ECV allows us to correctly emulate the timers, it also
reduces performances pretty badly.

Mitigate this by emulating the CTL/CVAL register reads in the
inner run loop, without returning to the general kernel.

Acked-by: Oliver Upton <oliver.upton@linux.dev>
Link: https://lore.kernel.org/r/20241217142321.763801-6-maz@kernel.org
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/kvm/arch_timer.c
arch/arm64/kvm/hyp/include/hyp/switch.h
arch/arm64/kvm/hyp/vhe/switch.c
include/kvm/arm_arch_timer.h