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)
commitebca1b8056dae8593bb350178d2ea454b3e123ad
treee80c0876053d3c289d8c83523212df70ff4204a5
parent8a093ea0d104998c4755743cdc5df7349356ae81
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