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

Convert kvm_pv_test to use vm_create_with_one_vcpu() and pass arounda
'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_pv_test.c