OSDN Git Service

KVM: arm64: selftests: Add arch_timer test
authorRaghavendra Rao Ananta <rananta@google.com>
Thu, 7 Oct 2021 23:34:38 +0000 (23:34 +0000)
committerMarc Zyngier <maz@kernel.org>
Sun, 17 Oct 2021 10:17:21 +0000 (11:17 +0100)
commit4959d8650e9f4095a5df6e578377d850f1b94d2f
treed1ae82552a26f425c07cfa6d01b6eb52837e8068
parent250b8d6cb3b0312341304fa323b82355d656c018
KVM: arm64: selftests: Add arch_timer test

Add a KVM selftest to validate the arch_timer functionality.
Primarily, the test sets up periodic timer interrupts and
validates the basic architectural expectations upon its receipt.

The test provides command-line options to configure the period
of the timer, number of iterations, and number of vCPUs.

Signed-off-by: Raghavendra Rao Ananta <rananta@google.com>
Reviewed-by: Andrew Jones <drjones@redhat.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20211007233439.1826892-15-rananta@google.com
tools/testing/selftests/kvm/.gitignore
tools/testing/selftests/kvm/Makefile
tools/testing/selftests/kvm/aarch64/arch_timer.c [new file with mode: 0644]