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)
commit39839c1a68ce28ea38ca3f789c9981b0d7310def
tree638f8dc18707f31cb67b12c52e6ec50c8084459b
parent2571bcdb136a3daf59df677585f32b89615eea47
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