]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: selftests: Convert xapic_ipi_test away from *_VCPU_ID
authorSean Christopherson <seanjc@google.com>
Wed, 16 Feb 2022 20:10:40 +0000 (12:10 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Sat, 11 Jun 2022 15:47:11 +0000 (11:47 -0400)
commitfd405884f8a2b481bb00df85e7745bbd055dab14
treee80c0876053d3c289d8c83523212df70ff4204a5
parent33b1ffec8c3f4abd4638b338fc37cf5cccac066a
KVM: selftests: Convert xapic_ipi_test away from *_VCPU_ID

Convert vm_create_with_one_vcpu to use vm_create_with_vcpus() and pass
around 'struct kvm_vcpu' objects instead of passing around vCPU IDs.
Don't bother with macros for the HALTER versus SENDER indices, the vast
majority of references don't differentiate between the vCPU roles, and
the code that does either has a comment or an explicit reference to the
role, e.g. to halter_guest_code() or sender_guest_code().

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