KVM: arm64: selftests: Add basic support to generate delays
authorRaghavendra Rao Ananta <rananta@google.com>
Thu, 7 Oct 2021 23:34:31 +0000 (23:34 +0000)
committerMarc Zyngier <maz@kernel.org>
Sun, 17 Oct 2021 10:17:20 +0000 (11:17 +0100)
commit80166904655976bb9babc48fd283c2bba5799920
tree3481ef6b6a002cf4f1e0184765ab99620516c0ba
parentd977ed39940231839f6856637fe24f41860f7969
KVM: arm64: selftests: Add basic support to generate delays

Add udelay() support to generate a delay in the guest.

The routines are derived and simplified from kernel's
arch/arm64/lib/delay.c.

Signed-off-by: Raghavendra Rao Ananta <rananta@google.com>
Reviewed-by: Andrew Jones <drjones@redhat.com>
Reviewed-by: Oliver Upton <oupton@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20211007233439.1826892-8-rananta@google.com
tools/testing/selftests/kvm/include/aarch64/delay.h [new file with mode: 0644]