KVM: selftests: Require vCPU output array when creating VM with vCPUs
authorSean Christopherson <seanjc@google.com>
Wed, 16 Feb 2022 21:53:23 +0000 (13:53 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Sat, 11 Jun 2022 15:47:21 +0000 (11:47 -0400)
commit5260db3eb8f96c0dc631b0f41035a5f1957d9a58
tree66272430d03639e2957b5b6e66903a8305dde97f
parent64a1aacc89700f675c7648b0962519f57630b62a
KVM: selftests: Require vCPU output array when creating VM with vCPUs

Require the caller of __vm_create_with_vcpus() to provide a non-NULL
array of vCPUs now that all callers do so.  It's extremely unlikely a
test will have a legitimate use case for creating a VM with vCPUs without
wanting to do something with those vCPUs, and if there is such a use case,
requiring that one-off test to provide a dummy array is a minor
annoyance.

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