KVM: arm64: Handle 32bit CNTPCTSS traps
authorMarc Zyngier <maz@kernel.org>
Thu, 13 Apr 2023 13:23:42 +0000 (14:23 +0100)
committerMarc Zyngier <maz@kernel.org>
Thu, 13 Apr 2023 13:23:42 +0000 (14:23 +0100)
commita6610435ac17de1ac727c90ad62c723d86c7ea36
tree64b8b8d28d34041f9772fc974883b1c11ef3b165
parent2fe9e0fc21602339b82cdba58ef81a5a97d90ca2
KVM: arm64: Handle 32bit CNTPCTSS traps

When CNTPOFF isn't implemented and that we have a non-zero counter
offset, CNTPCT and CNTPCTSS are trapped. We properly handle the
former, but not the latter, as it is not present in the sysreg
table (despite being actually handled in the code). Bummer.

Just populate the cp15_64 table with the missing register.

Reported-by: Reiji Watanabe <reijiw@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/include/asm/sysreg.h
arch/arm64/kvm/sys_regs.c