]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc2c2bccdeb95af855759da47fa273230c6b486c9
tree9e0b7d6b3b003b9e03c2b75cae08aa07ec302f29
parent0c22e430c0a22186fdb84d8b7121838a910aed93
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