KVM: selftests: Convert s390's "resets" test away from VCPU_ID
authorSean Christopherson <seanjc@google.com>
Wed, 16 Feb 2022 20:38:26 +0000 (12:38 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Sat, 11 Jun 2022 15:47:12 +0000 (11:47 -0400)
commit371dfb2e90d942fb651c324505bc4929447b081b
tree9e0b7d6b3b003b9e03c2b75cae08aa07ec302f29
parente5b77cdef9e3023b8156d81e005c3b7f27a1eaa5
KVM: selftests: Convert s390's "resets" test away from VCPU_ID

Pass around a 'struct kvm_vcpu' object in the "resets" test instead of
referencing the vCPU by the global VCPU_ID.  Rename the #define for the
vCPU's ID to ARBITRARY_NON_ZERO_VCPU_ID to make it more obvious that (a)
the value matters but (b) is otherwise arbitrary.

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