]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: selftests: Convert amx_test away from VCPU_ID
authorSean Christopherson <seanjc@google.com>
Wed, 16 Feb 2022 01:11:25 +0000 (17:11 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Sat, 11 Jun 2022 15:46:54 +0000 (11:46 -0400)
commit43de59b259f9febc0a563f431c5652081f3563b5
tree638f8dc18707f31cb67b12c52e6ec50c8084459b
parent22b815bd95dc50e16d3a14c05db3eaeba386d36f
KVM: selftests: Convert amx_test away from VCPU_ID

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

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/amx_test.c