]> www.infradead.org Git - users/jedix/linux-maple.git/commit
svm: Fix AVIC incomplete IPI emulation
authorSuravee Suthikulpanit <suravee.suthikulpanit@amd.com>
Tue, 22 Jan 2019 10:25:13 +0000 (10:25 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 5 Mar 2019 16:58:02 +0000 (17:58 +0100)
commitf20cf376cc63d887a989cd4521bcccd669ebd3eb
tree1464950ed5ab5dec00776f37c72acc0ce3ee0783
parent4b26d66aaece0efc8eccaf351c4efe9c5219dd63
svm: Fix AVIC incomplete IPI emulation

[ Upstream commit bb218fbcfaaa3b115d4cd7a43c0ca164f3a96e57 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/x86/kvm/svm.c