]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: selftests: Convert vmx_nested_tsc_scaling_test away from VCPU_ID
authorSean Christopherson <seanjc@google.com>
Wed, 16 Feb 2022 00:23:43 +0000 (16:23 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Sat, 11 Jun 2022 15:46:46 +0000 (11:46 -0400)
commitfdae1af041cd5b50ee95b89d245d4c516176ced4
tree68bfc8986604876d7d7b1dd9bfda103f0dfdc5a1
parentc1d30bffeafdc63ba389fba4656d6bc72dc3715f
KVM: selftests: Convert vmx_nested_tsc_scaling_test away from VCPU_ID

Convert vmx_nested_tsc_scaling_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_nested_tsc_scaling_test.c