]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite82caab395723c7a6dae4a812ea4e192e5bb2cf2
tree843d473fe466f7378747648b316defecba4c727d
parentacc54ade54685762be4144fb6e3a1ed9899f61fa
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