KVM: arm64: timers: Fast-track CNTPCT_EL0 trap handling
authorMarc Zyngier <maz@kernel.org>
Thu, 30 Mar 2023 17:47:53 +0000 (18:47 +0100)
committerMarc Zyngier <maz@kernel.org>
Thu, 30 Mar 2023 18:01:10 +0000 (19:01 +0100)
commite9adde432bf7371f1c83f67d9f8d75b95810f124
tree86910413cc1d9e42590e1d7b14c5f84bd22d092c
parent1a6511eb8430533920559c5f01f487f4901081cd
KVM: arm64: timers: Fast-track CNTPCT_EL0 trap handling

Now that it is likely that CNTPCT_EL0 accesses will trap,
fast-track the emulation of the counter read which doesn't
need more that a simple offsetting.

One day, we'll have CNTPOFF everywhere. One day.

Suggested-by: Oliver Upton <oliver.upton@linux.dev>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20230330174800.2677007-14-maz@kernel.org
arch/arm64/kvm/hyp/include/hyp/switch.h