]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0b2b90a9e37f9e2fc1c3c7ae58e68efc17a1701d
tree0e6f5594e3126ff4c069b932f3e08a4d1ed77eb2
parent8f493d74a8c40516084542032854c4f11c82b364
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