KVM: arm64: selftests: Add basic support for arch_timers
authorRaghavendra Rao Ananta <rananta@google.com>
Thu, 7 Oct 2021 23:34:30 +0000 (23:34 +0000)
committerMarc Zyngier <maz@kernel.org>
Sun, 17 Oct 2021 10:17:20 +0000 (11:17 +0100)
commitd977ed39940231839f6856637fe24f41860f7969
treecfcc163c7bd242c3768ead995d74843204b4b80f
parent740826ec02a65a5b25335fddfe8bce4ac99c7a11
KVM: arm64: selftests: Add basic support for arch_timers

Add a minimalistic library support to access the virtual timers,
that can be used for simple timing functionalities, such as
introducing delays in the guest.

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-7-rananta@google.com
tools/testing/selftests/kvm/include/aarch64/arch_timer.h [new file with mode: 0644]