aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/kvm/svm.c3
-rw-r--r--drivers/kvm/vmx.c3
2 files changed, 2 insertions, 4 deletions
diff --git a/drivers/kvm/svm.c b/drivers/kvm/svm.c
index af1e7b3f9171..ccc06b1b91b5 100644
--- a/drivers/kvm/svm.c
+++ b/drivers/kvm/svm.c
@@ -1206,8 +1206,7 @@ static int interrupt_window_interception(struct kvm_vcpu *vcpu,
1206 * possible 1206 * possible
1207 */ 1207 */
1208 if (kvm_run->request_interrupt_window && 1208 if (kvm_run->request_interrupt_window &&
1209 !vcpu->irq_summary && 1209 !vcpu->irq_summary) {
1210 (vcpu->svm->vmcb->save.rflags & X86_EFLAGS_IF)) {
1211 ++kvm_stat.irq_window_exits; 1210 ++kvm_stat.irq_window_exits;
1212 kvm_run->exit_reason = KVM_EXIT_IRQ_WINDOW_OPEN; 1211 kvm_run->exit_reason = KVM_EXIT_IRQ_WINDOW_OPEN;
1213 return 0; 1212 return 0;
diff --git a/drivers/kvm/vmx.c b/drivers/kvm/vmx.c
index e6ea76cdfdbd..d4701cb4c654 100644
--- a/drivers/kvm/vmx.c
+++ b/drivers/kvm/vmx.c
@@ -1604,8 +1604,7 @@ static int handle_interrupt_window(struct kvm_vcpu *vcpu,
1604 * possible 1604 * possible
1605 */ 1605 */
1606 if (kvm_run->request_interrupt_window && 1606 if (kvm_run->request_interrupt_window &&
1607 !vcpu->irq_summary && 1607 !vcpu->irq_summary) {
1608 (vmcs_readl(GUEST_RFLAGS) & X86_EFLAGS_IF)) {
1609 kvm_run->exit_reason = KVM_EXIT_IRQ_WINDOW_OPEN; 1608 kvm_run->exit_reason = KVM_EXIT_IRQ_WINDOW_OPEN;
1610 ++kvm_stat.irq_window_exits; 1609 ++kvm_stat.irq_window_exits;
1611 return 0; 1610 return 0;