diff options
Diffstat (limited to 'arch/x86/kvm/x86.c')
| -rw-r--r-- | arch/x86/kvm/x86.c | 7 | 
1 files changed, 3 insertions, 4 deletions
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index f6c3f03623a..145b1c81011 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c @@ -5691,7 +5691,7 @@ static int vcpu_enter_guest(struct kvm_vcpu *vcpu)  	int r;  	bool req_int_win = !irqchip_in_kernel(vcpu->kvm) &&  		vcpu->run->request_interrupt_window; -	bool req_immediate_exit = 0; +	bool req_immediate_exit = false;  	if (vcpu->requests) {  		if (kvm_check_request(KVM_REQ_MMU_RELOAD, vcpu)) @@ -5733,8 +5733,6 @@ static int vcpu_enter_guest(struct kvm_vcpu *vcpu)  			record_steal_time(vcpu);  		if (kvm_check_request(KVM_REQ_NMI, vcpu))  			process_nmi(vcpu); -		req_immediate_exit = -			kvm_check_request(KVM_REQ_IMMEDIATE_EXIT, vcpu);  		if (kvm_check_request(KVM_REQ_PMU, vcpu))  			kvm_handle_pmu_event(vcpu);  		if (kvm_check_request(KVM_REQ_PMI, vcpu)) @@ -5756,7 +5754,8 @@ static int vcpu_enter_guest(struct kvm_vcpu *vcpu)  		if (vcpu->arch.nmi_pending)  			kvm_x86_ops->enable_nmi_window(vcpu);  		else if (kvm_cpu_has_injectable_intr(vcpu) || req_int_win) -			kvm_x86_ops->enable_irq_window(vcpu); +			req_immediate_exit = +				kvm_x86_ops->enable_irq_window(vcpu) != 0;  		if (kvm_lapic_enabled(vcpu)) {  			/*  |