KVM: x86: Account for failing enable_irq_window for NMI window request
authorJan Kiszka <jan.kiszka@siemens.com>
Mon, 29 Apr 2013 14:46:42 +0000 (16:46 +0200)
committerMarcelo Tosatti <mtosatti@redhat.com>
Fri, 3 May 2013 01:17:38 +0000 (22:17 -0300)
commit03b28f8133165dbe4cd922054d599e26b8119508
tree990c42340b746bf2fa527f1febc109826f981029
parent5975a2e0950291a6bfe9fd5880e7952ff87764be
KVM: x86: Account for failing enable_irq_window for NMI window request

With VMX, enable_irq_window can now return -EBUSY, in which case an
immediate exit shall be requested before entering the guest. Account for
this also in enable_nmi_window which uses enable_irq_window in absence
of vnmi support, e.g.

Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/svm.c
arch/x86/kvm/vmx.c
arch/x86/kvm/x86.c