]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: selftests: Add VM creation helper that "returns" vCPUs
authorSean Christopherson <seanjc@google.com>
Wed, 16 Feb 2022 19:19:18 +0000 (11:19 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Sat, 11 Jun 2022 15:47:06 +0000 (11:47 -0400)
commit7fbf8675aa2f96bce43abaa82d72528ff0ed68ff
tree743f12bc266f5c458bbc0f453e590dc9683b7842
parent2fc981a09cb0bcee0ad0228a91706c2306077d27
KVM: selftests: Add VM creation helper that "returns" vCPUs

Add a VM creator that "returns" the created vCPUs by filling the provided
array.  This will allow converting multi-vCPU tests away from hardcoded
vCPU IDs.

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/kvm_page_table_test.c
tools/testing/selftests/kvm/lib/kvm_util.c
tools/testing/selftests/kvm/lib/perf_test_util.c