OSDN Git Service

KVM: arm64: selftests: Add light-weight spinlock support
authorRaghavendra Rao Ananta <rananta@google.com>
Thu, 7 Oct 2021 23:34:35 +0000 (23:34 +0000)
committerMarc Zyngier <maz@kernel.org>
Sun, 17 Oct 2021 10:17:21 +0000 (11:17 +0100)
commit414de89df1ec453ff4adb9d77ffd596096cb44bd
tree7443b05ed3b99e4ef1ba6f2f9a9860450303b89e
parent17229bdc86c9e618e8832b5ca8451e367e07511b
KVM: arm64: selftests: Add light-weight spinlock support

Add a simpler version of spinlock support for ARM64 for
the guests to use.

The implementation is loosely based on the spinlock
implementation in kvm-unit-tests.

Signed-off-by: Raghavendra Rao Ananta <rananta@google.com>
Reviewed-by: Oliver Upton <oupton@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-12-rananta@google.com
tools/testing/selftests/kvm/Makefile
tools/testing/selftests/kvm/include/aarch64/spinlock.h [new file with mode: 0644]
tools/testing/selftests/kvm/lib/aarch64/spinlock.c [new file with mode: 0644]