]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: selftests: Convert pmu_event_filter_test away from VCPU_ID
authorSean Christopherson <seanjc@google.com>
Tue, 15 Feb 2022 23:39:45 +0000 (15:39 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Sat, 11 Jun 2022 15:46:41 +0000 (11:46 -0400)
commit69e10972ff824c164787beccecccd5d0b2d68d07
tree6b0882779ccaea65fc2d04a60238bf687574eaf9
parent6a79481760b09126b777c139f711f6d1f2938d66
KVM: selftests: Convert pmu_event_filter_test away from VCPU_ID

Convert pmu_event_filter_test to use vm_create_with_one_vcpu() and pass
around a 'struct kvm_vcpu' object instead of using a global VCPU_ID.
Rename run_vm_to_sync() to run_vcpu_to_sync() accordingly.

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