KVM: VMX: Disallow NMI while blocked by STI
authorAvi Kivity <avi@redhat.com>
Mon, 1 Nov 2010 21:20:48 +0000 (23:20 +0200)
committerAvi Kivity <avi@redhat.com>
Wed, 12 Jan 2011 09:29:04 +0000 (11:29 +0200)
While not mandated by the spec, Linux relies on NMI being blocked by an
IF-enabling STI.  VMX also refuses to enter a guest in this state, at
least on some implementations.

Disallow NMI while blocked by STI by checking for the condition, and
requesting an interrupt window exit if it occurs.

Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>

No differences found