]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: arm64: Add timer UAPI workaround to sysreg infrastructure
authorMarc Zyngier <maz@kernel.org>
Mon, 29 Sep 2025 16:04:49 +0000 (17:04 +0100)
committerMarc Zyngier <maz@kernel.org>
Mon, 13 Oct 2025 13:42:40 +0000 (14:42 +0100)
commit77a0c42eaf03c66936429d190bb2ea1a214bd528
treed3921ab204f63ce767f3890d558328fe324f71ff
parenta92d552266890f83126fdef4f777a985cc1302bd
KVM: arm64: Add timer UAPI workaround to sysreg infrastructure

Amongst the numerous bugs that plague the KVM/arm64 UAPI, one of
the most annoying thing is that the userspace view of the virtual
timer has its CVAL and CNT encodings swapped.

In order to reduce the amount of code that has to know about this,
start by adding handling for this bug in the sys_reg code.

Nothing is making use of it yet, as the code responsible for userspace
interaction is catching the accesses early.

Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/kvm/sys_regs.c
arch/arm64/kvm/sys_regs.h