]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: selftests: Convert vmx_apic_access_test away from VCPU_ID
authorSean Christopherson <seanjc@google.com>
Wed, 16 Feb 2022 00:27:47 +0000 (16:27 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Sat, 11 Jun 2022 15:46:48 +0000 (11:46 -0400)
commit9585a3cd13554b41390d3edeb5afa553d1537b65
tree32ef04c5c79428bd020f66d0bfbd5dcfd0672c58
parent456652c31d6198687c6ceab2df53460fe69b915e
KVM: selftests: Convert vmx_apic_access_test away from VCPU_ID

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

Opportunistically make the "vm" variable local, it is unused outside of
main().

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