]> Gentwo Git Trees - linux/.git/commit
KVM: arm64: Replace timer context vcpu pointer with timer_id
authorMarc Zyngier <maz@kernel.org>
Mon, 29 Sep 2025 16:04:47 +0000 (17:04 +0100)
committerMarc Zyngier <maz@kernel.org>
Mon, 13 Oct 2025 13:42:40 +0000 (14:42 +0100)
commit8625a670afb05f1e1d69d50a74dbcc9d1b855efe
treece6b9832d1af200b73de9cbed683fd65533c031d
parentaa68975c973ed3b0bd4ff513113495588afb855c
KVM: arm64: Replace timer context vcpu pointer with timer_id

Having to follow a pointer to a vcpu is pretty dumb, when the timers
are are a fixed offset in the vcpu structure itself.

Trade the vcpu pointer for a timer_id, which can then be used to
compute the vcpu address as needed.

Reviewed-by: Joey Gouly <joey.gouly@arm.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/kvm/arch_timer.c
include/kvm/arm_arch_timer.h