]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Some processor's don't allow NMI injection if the STI_BLOCKING bit is set in
authorNeel Natu <neel@FreeBSD.org>
Sat, 18 Jan 2014 21:47:12 +0000 (21:47 +0000)
committerNeel Natu <neel@FreeBSD.org>
Sat, 18 Jan 2014 21:47:12 +0000 (21:47 +0000)
commit48b2d828a22232ff87246356c012a366c47115b8
tree62dd46ea5ecd51dd96fa15284633f4af04a0a7af
parent0c5d4bde90ea741b21568ec29da4df37d5c6a225
Some processor's don't allow NMI injection if the STI_BLOCKING bit is set in
the Guest Interruptibility-state field. However, there isn't any way to
figure out which processors have this requirement.

So, inject a pending NMI only if NMI_BLOCKING, MOVSS_BLOCKING, STI_BLOCKING
are all clear. If any of these bits are set then enable "NMI window exiting"
and inject the NMI in the VM-exit handler.
sys/amd64/vmm/intel/vmx.c