]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb992072001fa33df508461a57a164bdb58fa7172
treeb6651c050398054e92a4e8ba7e0d0ad3475d4419
parentf844f099996966fcbc33c36d4b868105c513d67a
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