]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
x86/xen: fallback when VCPUOP_send_nmi is not available
authorRoger Pau Monné <royger@FreeBSD.org>
Thu, 13 Jan 2022 13:48:14 +0000 (14:48 +0100)
committerRoger Pau Monné <royger@FreeBSD.org>
Tue, 12 Apr 2022 08:05:47 +0000 (10:05 +0200)
commita1a5c53516598ee0cd9910fff7733ec4746c1bdb
tree4ce5a2d1bba4c2bb17948413c4206973618ada90
parent590f093f74f2f60f7a49f0b8707970189d2faaef
x86/xen: fallback when VCPUOP_send_nmi is not available

It has been reported that on some AWS instances VCPUOP_send_nmi
returns -38 (ENOSYS). The hypercall is only available for HVM guests
in Xen 4.7 and newer. Add a fallback to use the native NMI sending
procedure when VCPUOP_send_nmi is not available, so that the NMI is
not lost.

Reported and Tested by: avg
Fixes: b2802351c162 ('xen: fix dispatching of NMIs')
Sponsored by: Citrix Systems R&D
(cherry picked from commit ad15eeeaba30cdf10036b7869d27441cfc9f0674)
sys/x86/xen/xen_apic.c