KVM: selftests: Drop vcpu_get(), rename vcpu_find() => vcpu_exists()
authorSean Christopherson <seanjc@google.com>
Thu, 17 Feb 2022 00:46:46 +0000 (16:46 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Sat, 11 Jun 2022 15:47:23 +0000 (11:47 -0400)
commitfce542992b5d8baaf6f7a4d61a3273de3a2ff10b
tree0e6f5594e3126ff4c069b932f3e08a4d1ed77eb2
parent768e9a61856b75de08f5efa5813bb3e7f16ec271
KVM: selftests: Drop vcpu_get(), rename vcpu_find() => vcpu_exists()

Drop vcpu_get() and rename vcpu_find() to vcpu_exists() to make it that
much harder for a test to give meaning to a vCPU ID.  I.e. force tests to
capture a vCPU when the vCPU is created.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/testing/selftests/kvm/include/kvm_util_base.h
tools/testing/selftests/kvm/lib/kvm_util.c