Skip to content

Commit 54306f5

Browse files
coltonlewisMarc Zyngier
authored andcommitted
KVM: arm64: selftests: Add arch_timer_edge_cases selftest
Add a new arch_timer_edge_cases selftests that validates: * timers above the max TVAL value * timers in the past * moving counters ahead and behind pending timers * reprograming timers * timers fired multiple times * masking/unmasking using the timer control mask These are intentionally unusual scenarios to stress compliance with the arm architecture. Co-developed-by: Ricardo Koller <[email protected]> Signed-off-by: Ricardo Koller <[email protected]> Signed-off-by: Colton Lewis <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Marc Zyngier <[email protected]>
1 parent ca1a183 commit 54306f5

File tree

3 files changed

+1080
-1
lines changed

3 files changed

+1080
-1
lines changed

tools/testing/selftests/kvm/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ TEST_GEN_PROGS_x86_64 += pre_fault_memory_test
152152
TEST_GEN_PROGS_EXTENDED_x86_64 += x86_64/nx_huge_pages_test
153153

154154
TEST_GEN_PROGS_aarch64 += aarch64/aarch32_id_regs
155+
TEST_GEN_PROGS_aarch64 += aarch64/arch_timer_edge_cases
155156
TEST_GEN_PROGS_aarch64 += aarch64/debug-exceptions
156157
TEST_GEN_PROGS_aarch64 += aarch64/hypercalls
157158
TEST_GEN_PROGS_aarch64 += aarch64/page_fault_test

0 commit comments

Comments
 (0)