]> 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)
commit55d81347a8271d82c3e75d00a64549338336b884
treee80c0876053d3c289d8c83523212df70ff4204a5
parentf549b32a35ba2b929b8825a358c215dbe2b39f85
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