]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit976597c82956ebf5222d6dc960a839ce1f7ec6de
treee656506fe5de24adf6c96505c3f37bf8b8797d30
parentb34f64728b53ac8971cfe36ad3b92a1d88f56a45
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