Skip to content
Commit 376bc1b4 authored by Gautam Menghani's avatar Gautam Menghani Committed by Sean Christopherson
Browse files

KVM: selftests: Don't assume vcpu->id is '0' in xAPIC state test



In xapic_state_test's test_icr(), explicitly skip iterations that would
match vcpu->id instead of assuming vcpu->id is '0', so that IPIs are
are correctly sent to non-existent vCPUs.

Suggested-by: default avatarSean Christopherson <seanjc@google.com>
Link: https://lore.kernel.org/kvm/YyoZr9rXSSMEtdh5@google.com


Signed-off-by: default avatarGautam Menghani <gautammenghani201@gmail.com>
Link: https://lore.kernel.org/r/20221017175819.12672-1-gautammenghani201@gmail.com


[sean: massage shortlog and changelog]
Signed-off-by: default avatarSean Christopherson <seanjc@google.com>
parent 2115713c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment