selftests: KVM: Use KVM_SET_MP_STATE to power off vCPU in psci_test
authorOliver Upton <oupton@google.com>
Wed, 4 May 2022 03:24:44 +0000 (03:24 +0000)
committerMarc Zyngier <maz@kernel.org>
Wed, 4 May 2022 08:28:46 +0000 (09:28 +0100)
commitd135399a97cc3e27716a8e468a5fd1a209346831
tree9a63382077d244008645b8b6e460ce12479ab73e
parent694e3dcc47471b8b409a0ef647319b746eabcb3a
selftests: KVM: Use KVM_SET_MP_STATE to power off vCPU in psci_test

Setting a vCPU's MP state to KVM_MP_STATE_STOPPED has the effect of
powering off the vCPU. Rather than using the vCPU init feature flag, use
the KVM_SET_MP_STATE ioctl to power off the target vCPU.

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