Skip to content

Commit 0630fb8

Browse files
author
Marc Zyngier
committed
KVM: arm64: selftests: Add physical timer registers to the sysreg list
Now that KVM exposes CNTPCT_EL0, CNTP_CTL_EL0 and CNT_CVAL_EL0 to userspace, add them to the get-reg-list selftest. Reviewed-by: Colton Lewis <coltonlewis@google.com> Signed-off-by: Marc Zyngier <maz@kernel.org> Link: https://lore.kernel.org/r/20230330174800.2677007-19-maz@kernel.org
1 parent 81dc950 commit 0630fb8

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

tools/testing/selftests/kvm/aarch64/get-reg-list.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,7 @@ int main(int ac, char **av)
651651
* The current blessed list was primed with the output of kernel version
652652
* v4.15 with --core-reg-fixup and then later updated with new registers.
653653
*
654-
* The blessed list is up to date with kernel version v5.13-rc3
654+
* The blessed list is up to date with kernel version v6.4 (or so we hope)
655655
*/
656656
static __u64 base_regs[] = {
657657
KVM_REG_ARM64 | KVM_REG_SIZE_U64 | KVM_REG_ARM_CORE | KVM_REG_ARM_CORE_REG(regs.regs[0]),
@@ -858,6 +858,9 @@ static __u64 base_regs[] = {
858858
ARM64_SYS_REG(3, 2, 0, 0, 0), /* CSSELR_EL1 */
859859
ARM64_SYS_REG(3, 3, 13, 0, 2), /* TPIDR_EL0 */
860860
ARM64_SYS_REG(3, 3, 13, 0, 3), /* TPIDRRO_EL0 */
861+
ARM64_SYS_REG(3, 3, 14, 0, 1), /* CNTPCT_EL0 */
862+
ARM64_SYS_REG(3, 3, 14, 2, 1), /* CNTP_CTL_EL0 */
863+
ARM64_SYS_REG(3, 3, 14, 2, 2), /* CNTP_CVAL_EL0 */
861864
ARM64_SYS_REG(3, 4, 3, 0, 0), /* DACR32_EL2 */
862865
ARM64_SYS_REG(3, 4, 5, 0, 1), /* IFSR32_EL2 */
863866
ARM64_SYS_REG(3, 4, 5, 3, 0), /* FPEXC32_EL2 */

0 commit comments

Comments
 (0)