]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: selftests: Convert tsc_msrs_test away from VCPU_ID
authorSean Christopherson <seanjc@google.com>
Wed, 16 Feb 2022 00:45:15 +0000 (16:45 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Sat, 11 Jun 2022 15:46:49 +0000 (11:46 -0400)
commite91a173ae0812a43a89163455d3f1b3a7ec40efb
tree2d4313631982e8ccf30e9baefa6826932426ec11
parent947bd2b898d4c541f9355b1b9594e3ae8d3c3595
KVM: selftests: Convert tsc_msrs_test away from VCPU_ID

Convert tsc_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/tsc_msrs_test.c