KVM: SVM: Compute dest based on sender's x2APIC status for AVIC kick
authorSean Christopherson <seanjc@google.com>
Fri, 6 Jan 2023 01:12:45 +0000 (01:12 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 13 Jan 2023 15:45:26 +0000 (10:45 -0500)
commita879a88e05f36153987ad9836e85009eb4114346
treee22e6ee6c5749a827ecb96519538b8979b109ff7
parentf628a34a9d5228d963e3c2f15e6ee92856a0a66b
KVM: SVM: Compute dest based on sender's x2APIC status for AVIC kick

Compute the destination from ICRH using the sender's x2APIC status, not
each (potential) target's x2APIC status.

Fixes: c514d3a348ac ("KVM: SVM: Update avic_kick_target_vcpus to support 32-bit APIC ID")
Cc: Li RongQing <lirongqing@baidu.com>
Signed-off-by: Sean Christopherson <seanjc@google.com>
Reviewed-by: Li RongQing <lirongqing@baidu.com>
Reviewed-by: Maxim Levitsky <mlevitsk@redhat.com>
Message-Id: <20230106011306.85230-13-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/svm/avic.c