selftests: KVM: Test SYSTEM_SUSPEND PSCI call
authorOliver Upton <oupton@google.com>
Wed, 4 May 2022 03:24:46 +0000 (03:24 +0000)
committerMarc Zyngier <maz@kernel.org>
Wed, 4 May 2022 08:28:46 +0000 (09:28 +0100)
commitb26dafc8a9e74254a390e8f21ff028a2573ee4fc
tree70b4e0eb15dea3fe824048c5f1e351a71f3f51c2
parent67a36a821312e9c0d2a2f7e6c2225204500cc01c
selftests: KVM: Test SYSTEM_SUSPEND PSCI call

Assert that the vCPU exits to userspace with KVM_SYSTEM_EVENT_SUSPEND if
the guest calls PSCI SYSTEM_SUSPEND. Additionally, guarantee that the
SMC32 and SMC64 flavors of this call are discoverable with the
PSCI_FEATURES call.

Signed-off-by: Oliver Upton <oupton@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20220504032446.4133305-13-oupton@google.com
tools/testing/selftests/kvm/aarch64/psci_test.c