KVM: selftests: Stop conflating vCPU index and ID in perf tests
authorSean Christopherson <seanjc@google.com>
Wed, 16 Feb 2022 21:38:12 +0000 (13:38 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Sat, 11 Jun 2022 15:47:20 +0000 (11:47 -0400)
commitdf84cef531ca481cbc1dbce84eb13efc6623e4e1
treee656506fe5de24adf6c96505c3f37bf8b8797d30
parent376851f8953a28be237b0a99adef91f422fa8f19
KVM: selftests: Stop conflating vCPU index and ID in perf tests

Track vCPUs by their 'struct kvm_vcpu' object, and stop assuming that a
vCPU's ID is the same as its index when referencing a vCPU's metadata.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/testing/selftests/kvm/access_tracking_perf_test.c
tools/testing/selftests/kvm/demand_paging_test.c
tools/testing/selftests/kvm/dirty_log_perf_test.c
tools/testing/selftests/kvm/include/perf_test_util.h
tools/testing/selftests/kvm/lib/perf_test_util.c
tools/testing/selftests/kvm/lib/x86_64/perf_test_util.c
tools/testing/selftests/kvm/memslot_modification_stress_test.c