selftests: KVM: Create helper for making SMCCC calls
authorOliver Upton <oupton@google.com>
Sat, 9 Apr 2022 18:45:46 +0000 (18:45 +0000)
committerMarc Zyngier <maz@kernel.org>
Tue, 3 May 2022 20:30:20 +0000 (21:30 +0100)
commite918e2bc52c8ac1cccd6ef822ac23eded41761b6
tree843d473fe466f7378747648b316defecba4c727d
parentbf08515d39cb843c81f991ee67ff543eecdba0c3
selftests: KVM: Create helper for making SMCCC calls

The PSCI and PV stolen time tests both need to make SMCCC calls within
the guest. Create a helper for making SMCCC calls and rework the
existing tests to use the library function.

Signed-off-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/20220409184549.1681189-11-oupton@google.com
tools/testing/selftests/kvm/aarch64/psci_test.c
tools/testing/selftests/kvm/include/aarch64/processor.h
tools/testing/selftests/kvm/lib/aarch64/processor.c
tools/testing/selftests/kvm/steal_time.c