]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: selftests: Convert vmx_pmu_msrs_test away from VCPU_ID
authorSean Christopherson <seanjc@google.com>
Tue, 15 Feb 2022 21:53:06 +0000 (13:53 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Sat, 11 Jun 2022 15:46:39 +0000 (11:46 -0400)
commit6a31b2914abd2cc7f8afa7588d92454e410cce64
tree4e6b13d22c7b200317d1b527bec9582e7998f6f7
parent1d72d755fc75cbdd5db614df6e024899e57adb19
KVM: selftests: Convert vmx_pmu_msrs_test away from VCPU_ID

Convert vmx_pmu_msrs_test to use vm_create_with_one_vcpu() and pass
around a 'struct kvm_vcpu' object instead of using a global VCPU_ID.

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