KVM: nVMX: Fix conditions for NMI injection
authorJan Kiszka <jan.kiszka@siemens.com>
Sun, 14 Apr 2013 19:04:26 +0000 (21:04 +0200)
committerGleb Natapov <gleb@redhat.com>
Mon, 22 Apr 2013 08:10:49 +0000 (11:10 +0300)
commitea8ceb8354e1c84a13cf2a8e915dc74f96759393
treec200b09a828deaac744f403f76c235ede613ad7e
parent2505dc9fad44491ac4ce06290f358c030abe6be3
KVM: nVMX: Fix conditions for NMI injection

The logic for checking if interrupts can be injected has to be applied
also on NMIs. The difference is that if NMI interception is on these
events are consumed and blocked by the VM exit.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Gleb Natapov <gleb@redhat.com>
arch/x86/kvm/vmx.c