]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita07bdfe9238452215f7c191ccd2aab2946497558
tree8a4387796e3f9946cea1725566e584dff525c3f8
parent6c185b0386176086b22fe377c5b22cccd36094e7
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