commit | 5c94ac5d0f9e3c8791d1686e0bf22a2a341d1597 | [log] [tgz] |
---|---|---|
author | Miaohe Lin <linmiaohe@huawei.com> | Fri Oct 18 10:50:31 2019 +0800 |
committer | Paolo Bonzini <pbonzini@redhat.com> | Tue Oct 22 18:47:50 2019 +0200 |
tree | 293779223b4f869c256b8548a7ea3cc9e1b18348 | |
parent | 20baa8e515a55dc7467d9584cc458b5700c0a3aa [diff] |
KVM: SVM: Fix potential wrong physical id in avic_handle_ldr_update Guest physical APIC ID may not equal to vcpu->vcpu_id in some case. We may set the wrong physical id in avic_handle_ldr_update as we always use vcpu->vcpu_id. Get physical APIC ID from vAPIC page instead. Export and use kvm_xapic_id here and in avic_handle_apic_id_update as suggested by Vitaly. Signed-off-by: Miaohe Lin <linmiaohe@huawei.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>