KVM: x86: Remove return code from enable_irq/nmi_window
authorJan Kiszka <jan.kiszka@siemens.com>
Fri, 7 Mar 2014 19:03:15 +0000 (20:03 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 11 Mar 2014 07:41:47 +0000 (08:41 +0100)
commitc9a7953f09bbe2b66050ebf97e0532eaeefbc9f3
tree8a4387796e3f9946cea1725566e584dff525c3f8
parent220c56729766444f3dd823f740a147ca6d82c4c6
KVM: x86: Remove return code from enable_irq/nmi_window

It's no longer possible to enter enable_irq_window in guest mode when
L1 intercepts external interrupts and we are entering L2. This is now
caught in vcpu_enter_guest. So we can remove the check from the VMX
version of enable_irq_window, thus the need to return an error code from
both enable_irq_window and enable_nmi_window.

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