]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1e172bf3c694bbe57f83eac37365a6c3cdc67030
tree3ff05cc7c036218a8fc0ef5e73338e4f2d1e1d14
parenta262f0d4af3c4a8e3422775d82ea9d507c6b328a
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