KVM: VMX: simplify NMI mask management
authorAvi Kivity <avi@redhat.com>
Wed, 23 Mar 2011 13:02:47 +0000 (15:02 +0200)
committerAvi Kivity <avi@redhat.com>
Wed, 11 May 2011 11:56:57 +0000 (07:56 -0400)
Use vmx_set_nmi_mask() instead of open-coding management of
the hardware bit and the software hint (nmi_known_unmasked).

There's a slight change of behaviour when running without
hardware virtual NMI support - we now clear the NMI mask if
NMI delivery faulted in that case as well.  This improves
emulation accuracy.

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

No differences found