KVM: selftests: Return the created vCPU from vm_vcpu_add()
authorSean Christopherson <seanjc@google.com>
Wed, 16 Feb 2022 00:16:45 +0000 (16:16 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Sat, 11 Jun 2022 15:46:36 +0000 (11:46 -0400)
commite3763d3aebea261ac3eef24e94dc85be91209d0b
tree3ff05cc7c036218a8fc0ef5e73338e4f2d1e1d14
parent0cc64b08096c71ba139e25759597c5df80ae422a
KVM: selftests: Return the created vCPU from vm_vcpu_add()

Return the created vCPU from vm_vcpu_add() so that callers don't need to
manually retrieve the vCPU that was just added.  Opportunistically drop
the "heavy" function comment, it adds a lot of lines of "code" but not
much value, e.g. it's pretty obvious that @vm is a virtual machine...

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