]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: selftests: Convert memslot_perf_test away from VCPU_ID
authorSean Christopherson <seanjc@google.com>
Tue, 15 Feb 2022 21:34:31 +0000 (13:34 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Sat, 11 Jun 2022 15:46:37 +0000 (11:46 -0400)
commitae0718c25c0d23c4af2bc82e9ae12a1893499f8c
treee0c82ccffa1c8e70723c50dcf22757c8a43be31d
parent1e172bf3c694bbe57f83eac37365a6c3cdc67030
KVM: selftests: Convert memslot_perf_test away from VCPU_ID

Convert memslot_perf_test to use __vm_create_with_one_vcpu() and pass
around a 'struct kvm_vcpu' object instead of using a global VCPU_ID.
This is the first of many, many steps towards eliminating VCPU_ID from
all KVM selftests, and towards eventually purging the VM+vcpu_id mess.

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