diff options
author | Jan Kiszka <jan.kiszka@siemens.com> | 2014-03-07 14:03:15 -0500 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2014-03-11 03:41:47 -0400 |
commit | c9a7953f09bbe2b66050ebf97e0532eaeefbc9f3 (patch) | |
tree | 8a4387796e3f9946cea1725566e584dff525c3f8 /arch/x86/include | |
parent | 220c56729766444f3dd823f740a147ca6d82c4c6 (diff) |
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>
Diffstat (limited to 'arch/x86/include')
-rw-r--r-- | arch/x86/include/asm/kvm_host.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/include/asm/kvm_host.h b/arch/x86/include/asm/kvm_host.h index 461d00a554e0..7930c294182a 100644 --- a/arch/x86/include/asm/kvm_host.h +++ b/arch/x86/include/asm/kvm_host.h | |||
@@ -729,8 +729,8 @@ struct kvm_x86_ops { | |||
729 | int (*nmi_allowed)(struct kvm_vcpu *vcpu); | 729 | int (*nmi_allowed)(struct kvm_vcpu *vcpu); |
730 | bool (*get_nmi_mask)(struct kvm_vcpu *vcpu); | 730 | bool (*get_nmi_mask)(struct kvm_vcpu *vcpu); |
731 | void (*set_nmi_mask)(struct kvm_vcpu *vcpu, bool masked); | 731 | void (*set_nmi_mask)(struct kvm_vcpu *vcpu, bool masked); |
732 | int (*enable_nmi_window)(struct kvm_vcpu *vcpu); | 732 | void (*enable_nmi_window)(struct kvm_vcpu *vcpu); |
733 | int (*enable_irq_window)(struct kvm_vcpu *vcpu); | 733 | void (*enable_irq_window)(struct kvm_vcpu *vcpu); |
734 | void (*update_cr8_intercept)(struct kvm_vcpu *vcpu, int tpr, int irr); | 734 | void (*update_cr8_intercept)(struct kvm_vcpu *vcpu, int tpr, int irr); |
735 | int (*vm_has_apicv)(struct kvm *kvm); | 735 | int (*vm_has_apicv)(struct kvm *kvm); |
736 | void (*hwapic_irr_update)(struct kvm_vcpu *vcpu, int max_irr); | 736 | void (*hwapic_irr_update)(struct kvm_vcpu *vcpu, int max_irr); |