]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: selftests: Convert hyperv_clock away from VCPU_ID
authorSean Christopherson <seanjc@google.com>
Wed, 16 Feb 2022 00:54:04 +0000 (16:54 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Sat, 11 Jun 2022 15:46:51 +0000 (11:46 -0400)
commit72a22b645a0fc5c3a5bf6761419e2319351091c4
tree3c3ecf3b1ab0900199a33fb3f5734ac9a6f7340c
parent04a458aa1c6312b6b11879642a12d7032a49fced
KVM: selftests: Convert hyperv_clock away from VCPU_ID

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

Opportunistically use vcpu_run() instead of _vcpu_run() with an open
coded assert that KVM_RUN succeeded.

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