]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: selftests: Convert cpuid_test away from VCPU_ID
authorSean Christopherson <seanjc@google.com>
Wed, 16 Feb 2022 01:13:53 +0000 (17:13 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Sat, 11 Jun 2022 15:46:55 +0000 (11:46 -0400)
commit53263f0107504eba9a5647b87cd778545ede1606
tree641cca9acd6551b42e74f71b738d7eaa05b86563
parent3b0c7fe4554da9c5e52cb8bbf2f47e969c2defff
KVM: selftests: Convert cpuid_test away from VCPU_ID

Convert cpuid_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(), the test expects
KVM_RUN to succeed.

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