]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb2e5f94a3e81a973dc156c317612b55d25d7e3e5
tree9a63382077d244008645b8b6e460ce12479ab73e
parent1f03af43a3942f5763552b5dc0eb32f4bc9187c0
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