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

Convert hyperv_features 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_features.c