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)
commit654f06fc651b01782015185e5b049197255463a3
treeb6651c050398054e92a4e8ba7e0d0ad3475d4419
parent89a9fb78b5bd8bece353449079726556ecab41df
KVM: VMX: simplify NMI mask management

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>
arch/x86/kvm/vmx.c