]> 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)
commit69217bc2c0320a483f8c762378c985bd3edfd442
tree1e80ad9de36a60041c9e1c551c7fc393e0b789e8
parent9e203c8bc24074ccef952d65213f987d500c6a0c
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