KVM: arm64: timers: Abstract the number of valid timers per vcpu
authorMarc Zyngier <maz@kernel.org>
Thu, 30 Mar 2023 17:47:54 +0000 (18:47 +0100)
committerMarc Zyngier <maz@kernel.org>
Thu, 30 Mar 2023 18:01:10 +0000 (19:01 +0100)
commit476fcd4b7bb54ac959b683f30d0cf305c3e11f3c
tree3bd9f1a6d37837cb7cf118b21af6dcccab464a09
parente9adde432bf7371f1c83f67d9f8d75b95810f124
KVM: arm64: timers: Abstract the number of valid timers per vcpu

We so far have a pretty fixed number of timers to take care of.
This is about to change as NV brings another two into the
picture, and we must be careful not to try and emulate non-valid
timers in a given VM.

For this, abstract the number of timers for a given vcpu behind
an accessor, which helpfully returns a constant for now.

Reviewed-by: Colton Lewis <coltonlewis@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20230330174800.2677007-15-maz@kernel.org
arch/arm64/kvm/arch_timer.c