]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: selftests: Convert kvm_clock_test away from VCPU_ID
authorSean Christopherson <seanjc@google.com>
Wed, 16 Feb 2022 00:46:56 +0000 (16:46 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Sat, 11 Jun 2022 15:46:50 +0000 (11:46 -0400)
commit23bd9cb794bc0f4828d13d24f4c3c5963c05cb40
treed021127f9ff8f983c82166e54417df4635b983fd
parente91a173ae0812a43a89163455d3f1b3a7ec40efb
KVM: selftests: Convert kvm_clock_test away from VCPU_ID

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