]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: selftests: Convert system_counter_offset_test away from VCPU_ID
authorSean Christopherson <seanjc@google.com>
Mon, 18 Apr 2022 18:28:15 +0000 (11:28 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Sat, 11 Jun 2022 15:46:59 +0000 (11:46 -0400)
commit82a0fe9f907d43b4279338e28bb707a5c4d35548
tree397e996e6ac0fecfa3242b9eb0ebcb32759a7166
parent50f6d6fa07640570c2dd3a3edbb3c95f5e7f3260
KVM: selftests: Convert system_counter_offset_test away from VCPU_ID

Convert system_counter_offset_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/system_counter_offset_test.c