From: Roman Kagan Subject: [PATCH 1/5] kvm/x86: fix inversed check for async_pf MSR Date: Fri, 2 Dec 2016 11:47:50 +0300 Message-ID: <20161202084754.22860-2-rkagan@virtuozzo.com> References: <20161202084754.22860-1-rkagan@virtuozzo.com> Mime-Version: 1.0 Content-Type: text/plain Cc: Denis Lunev , Roman Kagan To: =?UTF-8?q?Radim=20Kr=C4=8Dm=C3=A1=C5=99?= , Paolo Bonzini , Return-path: Received: from mail-db5eur01on0119.outbound.protection.outlook.com ([104.47.2.119]:32352 "EHLO EUR01-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1758340AbcLBIsO (ORCPT ); Fri, 2 Dec 2016 03:48:14 -0500 In-Reply-To: <20161202084754.22860-1-rkagan@virtuozzo.com> Sender: kvm-owner@vger.kernel.org List-ID: Signed-off-by: Roman Kagan --- arch/x86/kvm/x86.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index bf11fe4..14a46e9 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c @@ -8402,7 +8402,7 @@ void kvm_arch_async_page_present(struct kvm_vcpu *vcpu, bool kvm_arch_can_inject_async_page_present(struct kvm_vcpu *vcpu) { if (!(vcpu->arch.apf.msr_val & KVM_ASYNC_PF_ENABLED)) - return true; + return false; else return !kvm_event_needs_reinjection(vcpu) && kvm_x86_ops->interrupt_allowed(vcpu); -- 2.9.3