selftests: KVM: Refactor psci_test to make it amenable to new tests
authorOliver Upton <oupton@google.com>
Wed, 4 May 2022 03:24:45 +0000 (03:24 +0000)
committerMarc Zyngier <maz@kernel.org>
Wed, 4 May 2022 08:28:46 +0000 (09:28 +0100)
commit67a36a821312e9c0d2a2f7e6c2225204500cc01c
tree6db36317010c9e96dbdff560e66838c1ec34e8c1
parentd135399a97cc3e27716a8e468a5fd1a209346831
selftests: KVM: Refactor psci_test to make it amenable to new tests

Split up the current test into several helpers that will be useful to
subsequent test cases added to the PSCI test suite.

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-12-oupton@google.com
tools/testing/selftests/kvm/aarch64/psci_test.c