]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: arm64: selftests: Fix misleading comment about virtual timer encoding
authorMarc Zyngier <maz@kernel.org>
Mon, 29 Sep 2025 16:04:57 +0000 (17:04 +0100)
committerMarc Zyngier <maz@kernel.org>
Mon, 13 Oct 2025 13:43:12 +0000 (14:43 +0100)
commit5c7cf1e44e94a5408b1b5277810502b0f82b77fe
treee3b1379debeb76c8968f224873180f4f70464ecc
parent4da5a9af78b74fb771a4d25dc794296d10e170b1
KVM: arm64: selftests: Fix misleading comment about virtual timer encoding

The userspace-visible encoding for CNTV_CVAL_EL0 and CNTVCNT_EL0
have been swapped for as long as usersapce has had access to the
registers. This is documented in arch/arm64/include/uapi/asm/kvm.h.

Despite that, the get_reg_list test has unhelpful comments indicating
the wrong register for the encoding.

Replace this with definitions exposed in the include file, and
a comment explaining again the brokenness.

Signed-off-by: Marc Zyngier <maz@kernel.org>
tools/testing/selftests/kvm/arm64/get-reg-list.c