]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: KVM: Create helper for making SMCCC calls
authorOliver Upton <oupton@google.com>
Wed, 4 May 2022 03:24:43 +0000 (03:24 +0000)
committerMarc Zyngier <maz@kernel.org>
Wed, 4 May 2022 08:28:45 +0000 (09:28 +0100)
commit1f03af43a3942f5763552b5dc0eb32f4bc9187c0
tree1e80ad9de36a60041c9e1c551c7fc393e0b789e8
parent8f305c3566f467182e8058aab379dab6dc663db8
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/20220504032446.4133305-10-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