]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: selftests: Convert psci_test away from VCPU_ID
authorSean Christopherson <seanjc@google.com>
Wed, 16 Feb 2022 19:11:50 +0000 (11:11 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Sat, 11 Jun 2022 15:47:05 +0000 (11:47 -0400)
commita45e1ded7d4aa3cdd22300384ff1662c3f749112
tree2dc2970d650530ab4a55cd71ea2c917dff5205f2
parenta415d08ba8bd1e4704181217b98602049f1630dc
KVM: selftests: Convert psci_test away from VCPU_ID

Pass around 'struct kvm_vcpu' objects in psci_test instead of relying on
global VCPU_IDs.  Ideally, the test wouldn't have to manually create
vCPUs and thus care about vCPU IDs, but it's not the end of the world and
avoiding that behavior isn't guaranteed to be a net positive (an attempt
at macro shenanigans did not go very well).

Signed-off-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/testing/selftests/kvm/aarch64/psci_test.c