]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5e165ae32a37b575c1abb9d9850f33a6cf165b00
tree66272430d03639e2957b5b6e66903a8305dde97f
parenta60a2338053b97533ba8620da0b7293c78dc1980
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