svm: Fix AVIC incomplete IPI emulation
authorSuravee Suthikulpanit <suravee.suthikulpanit@amd.com>
Tue, 22 Jan 2019 10:25:13 +0000 (10:25 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 25 Jan 2019 18:11:34 +0000 (19:11 +0100)
commitbb218fbcfaaa3b115d4cd7a43c0ca164f3a96e57
tree057e73c9199a2435309d479dab871a1b49cbcf85
parent37ef0c4414c9743ba7f1af4392f0a27a99649f2a
svm: Fix AVIC incomplete IPI emulation

In case of incomplete IPI with invalid interrupt type, the current
SVM driver does not properly emulate the IPI, and fails to boot
FreeBSD guests with multiple vcpus when enabling AVIC.

Fix this by update APIC ICR high/low registers, which also
emulate sending the IPI.

Signed-off-by: Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/svm.c