KVM: selftests: Add a helper for SMCCC calls with SMC instruction
authorOliver Upton <oliver.upton@linux.dev>
Tue, 4 Apr 2023 15:40:49 +0000 (15:40 +0000)
committerMarc Zyngier <maz@kernel.org>
Wed, 5 Apr 2023 11:07:42 +0000 (12:07 +0100)
commitfab19915f498b0e76fabd4d78841c99b7b6d7851
tree000f6c2a76c53d68bc4954fb8562c6e64fede2fe
parent37c8e494794786aa8e4acba1f0f5b45f37b11699
KVM: selftests: Add a helper for SMCCC calls with SMC instruction

Build a helper for doing SMCs in selftests by macro-izing the current
HVC implementation and taking the conduit instruction as an argument.

Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20230404154050.2270077-13-oliver.upton@linux.dev
tools/testing/selftests/kvm/include/aarch64/processor.h
tools/testing/selftests/kvm/lib/aarch64/processor.c