OSDN Git Service

selftests: KVM: Introduce psci_cpu_on_test
authorOliver Upton <oupton@google.com>
Wed, 18 Aug 2021 20:21:33 +0000 (20:21 +0000)
committerMarc Zyngier <maz@kernel.org>
Thu, 19 Aug 2021 08:08:57 +0000 (09:08 +0100)
commitcb97cf95c44021278b7637731bc0928026bc29ab
tree04d619315773ca24a9f4d36cbdefff7a57ce7bb4
parente10ecb4d6c0761ca545b3946df1707a41f9f845e
selftests: KVM: Introduce psci_cpu_on_test

Introduce a test for aarch64 that ensures CPU resets induced by PSCI are
reflected in the target vCPU's state, even if the target is never run
again. This is a regression test for a race between vCPU migration and
PSCI.

Reviewed-by: Andrew Jones <drjones@redhat.com>
Signed-off-by: Oliver Upton <oupton@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20210818202133.1106786-5-oupton@google.com
tools/testing/selftests/kvm/.gitignore
tools/testing/selftests/kvm/Makefile
tools/testing/selftests/kvm/aarch64/psci_cpu_on_test.c [new file with mode: 0644]
tools/testing/selftests/kvm/include/aarch64/processor.h