]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit393c0c8367d1385f417f13affeb9a5e5c07cd930
tree70b4e0eb15dea3fe824048c5f1e351a71f3f51c2
parent59669fbc5a94a0e74e1a6cba2f5f9fa9c0a8a81f
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