mirror-linux/tools/testing/selftests/kvm/arm64
Marc Zyngier 5c7cf1e44e 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>
2025-10-13 14:43:12 +01:00
..
aarch32_id_regs.c KVM: arm64: Get rid of ARM64_FEATURE_MASK() 2025-08-21 16:31:56 -07:00
arch_timer.c KVM: arm64: selftests: Use hyp timer IRQs when test runs at EL2 2025-09-24 19:23:32 +01:00
arch_timer_edge_cases.c KVM: arm64: selftests: Track width of timer counter as "int", not "uint64_t" 2025-10-13 14:17:03 +01:00
debug-exceptions.c KVM/arm64 changes for 6.17, take #2 2025-08-29 12:57:31 -04:00
external_aborts.c KVM: arm64: selftests: Test effective value of HCR_EL2.AMO 2025-10-13 14:17:03 +01:00
get-reg-list.c KVM: arm64: selftests: Fix misleading comment about virtual timer encoding 2025-10-13 14:43:12 +01:00
hello_el2.c KVM: arm64: selftests: Cope with arch silliness in EL2 selftest 2025-09-24 19:24:02 +01:00
host_sve.c KVM: arm64: selftests: Add test for SVE host corruption 2025-05-06 09:50:56 +01:00
hypercalls.c KVM: arm64: selftests: Select SMCCC conduit based on current EL 2025-09-24 19:23:32 +01:00
kvm-uuid.c KVM: arm64: selftests: Select SMCCC conduit based on current EL 2025-09-24 19:23:32 +01:00
no-vgic-v3.c KVM: arm64: selftests: Create a VGICv3 for 'default' VMs 2025-09-24 19:23:32 +01:00
page_fault_test.c KVM: arm64: Get rid of ARM64_FEATURE_MASK() 2025-08-21 16:31:56 -07:00
psci_test.c KVM: arm64: selftests: Select SMCCC conduit based on current EL 2025-09-24 19:23:32 +01:00
set_id_regs.c KVM: arm64: selftests: Sync ID_AA64PFR1, MPIDR, CLIDR in guest 2025-10-13 14:17:03 +01:00
smccc_filter.c KVM: arm64: selftests: Enable EL2 by default 2025-09-24 19:23:32 +01:00
vcpu_width_config.c
vgic_init.c KVM: arm64: selftests: Create a VGICv3 for 'default' VMs 2025-09-24 19:23:32 +01:00
vgic_irq.c KVM: arm64: selftests: Create a VGICv3 for 'default' VMs 2025-09-24 19:23:32 +01:00
vgic_lpi_stress.c KVM: arm64: selftests: Actually enable IRQs in vgic_lpi_stress 2025-10-13 14:28:27 +01:00
vpmu_counter_access.c KVM: arm64: selftests: Use the vCPU attr for setting nr of PMU counters 2025-09-24 19:23:32 +01:00