Message ID | 20161202084754.22860-2-rkagan@virtuozzo.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <kvm-owner@kernel.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 6969D6074E for <patchwork-kvm@patchwork.kernel.org>; Fri, 2 Dec 2016 08:48:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 603B228539 for <patchwork-kvm@patchwork.kernel.org>; Fri, 2 Dec 2016 08:48:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5396128540; Fri, 2 Dec 2016 08:48:24 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0147028539 for <patchwork-kvm@patchwork.kernel.org>; Fri, 2 Dec 2016 08:48:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758535AbcLBIsQ (ORCPT <rfc822;patchwork-kvm@patchwork.kernel.org>); Fri, 2 Dec 2016 03:48:16 -0500 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 <rfc822;kvm@vger.kernel.org>); Fri, 2 Dec 2016 03:48:14 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=virtuozzo.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=tk/5l5KON4P8HBxYB0BfrwQ0YGV3Eld29nIci3NLJ3k=; b=UpU7GAhOltbaDXkBFHrxwovVvZBb38Rax4jKbpdRjoL3W52GmxH1zvSlvt7fsqg3Ci5CbB5xc7vZhP0IQAp4HWepT16JFbx8VqZw2sQRF0M4YFmqR2yH2Pp4GVoaKpeG3yeqr4raRBIQx9M8rvYtLJUPVQi0tUEMdqiUBl2dRqc= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=rkagan@virtuozzo.com; Received: from rkaganb.sw.ru (195.214.232.10) by VI1PR0802MB2478.eurprd08.prod.outlook.com (10.175.26.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.761.9; Fri, 2 Dec 2016 08:48:10 +0000 From: Roman Kagan <rkagan@virtuozzo.com> To: =?UTF-8?q?Radim=20Kr=C4=8Dm=C3=A1=C5=99?= <rkrcmar@redhat.com>, Paolo Bonzini <pbonzini@redhat.com>, <kvm@vger.kernel.org> CC: Denis Lunev <den@virtuozzo.com>, Roman Kagan <rkagan@virtuozzo.com> 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> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20161202084754.22860-1-rkagan@virtuozzo.com> References: <20161202084754.22860-1-rkagan@virtuozzo.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [195.214.232.10] X-ClientProxiedBy: AM4PR01CA0024.eurprd01.prod.exchangelabs.com (10.164.74.162) To VI1PR0802MB2478.eurprd08.prod.outlook.com (10.175.26.21) X-MS-Office365-Filtering-Correlation-Id: 8d6f910e-a7e0-453e-62e7-08d41a8ff20a X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:VI1PR0802MB2478; X-Microsoft-Exchange-Diagnostics: 1; VI1PR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Y3FbLFQePFY0=; 20:lSTfrAyANAmckaO7M+GsRIcoVRsdkY7+5aaEcrXH9kSDctV5lTXTkjb5X0S0wpQXdi6zG5p21UzZ6ycN1lXcmJCexpT4mxxQlo58BEJod9tmR8NvPH8xo8t6SYUad0k0Ngb8kcnVafhb8L7D84QlkUFSoXGukeUZvD+S7ilcT8s= X-Microsoft-Antispam-PRVS: <VI1PR0802MB24783469C86E8E01CF5D197EC98E0@VI1PR0802MB2478.eurprd08.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046)(6041248)(20161123555025)(20161123560025)(20161123558021)(20161123564025)(20161123562025)(2016111802025)(6072148)(6043046); SRVR:VI1PR0802MB2478; BCL:0; PCL:0; RULEID:; SRVR:VI1PR0802MB2478; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0802MB2478; 4:vg/2OZ5+ZpfGKkeEJx4ioodxGSNArST7HZg2ReGnZHAu/hWI6aGeRISg1nGvhXPrOUQGtdbYIR39Ha9j1hg7Qsidp6focu1JWsokqk1dAd+oC187lF3/KEL/SizImaX2B9uX0SvMHLGHsAUZXY1j/jVHHf3CV5OtKagC53VSIuhbP4rN1jpLv22xY1lGIrJNkrUOvRjR3JtwEaa226FLBJ0GrsyKgTtcvJortuDe9WX7CNY4pxkUX9zl4C3hq/345fUD33ne1PNf2LnnwPvF6OmZ3yL39meHADk6ESxvBK7j8YxtRbSj7JUyoW+BXRWIhMm9935HymOsyocNmimRQFw+N24lrL0Wjk2EB7uCU3YUoUzUFbNfKVhLFj9C7RTtFFoNlhTkJFtId28KgiHqiQnzTNS6l9c/hNGb/bw1O6QcLaC1tFQ3gwvnSuMkfcVTnzlAaNi/nizehpHvl7WIAOLMTHeFH4tC3Ti1qv/xuAS/wNEsA8NUo3tqdqxxNvxfacrtLJ1lK8pTgGi6gvrHybH7e/MupzpDG1ZZ0aAaJjoj3qWsVK+4oh7qDXCys5ZnSkINQ5TgVkf212EibNj1caQrl4nnlyt1jTZ/GE/awOOTiCwAzI1IGiyy+zFAwvYoL6O6nhESsFnxAInrSAFeuQ== X-Forefront-PRVS: 0144B30E41 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(4630300001)(6009001)(7916002)(199003)(189002)(53416004)(189998001)(81166006)(81156014)(8676002)(5001770100001)(4001430100002)(107886002)(97736004)(39450400002)(305945005)(76176999)(6512004)(2950100002)(6486002)(6506004)(733004)(5660300001)(6666003)(7736002)(5003940100001)(68736007)(50466002)(39410400001)(48376002)(38730400001)(50226002)(50986999)(4326007)(1076002)(2906002)(92566002)(101416001)(7846002)(33646002)(36756003)(69596002)(42186005)(66066001)(86362001)(105586002)(6116002)(3846002)(106356001)(47776003); DIR:OUT; SFP:1102; SCL:1; SRVR:VI1PR0802MB2478; H:rkaganb.sw.ru; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: virtuozzo.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; VI1PR0802MB2478; 23:75YzVKhG93N/JNPwJDIdKXgLW2LTAmrOHRzDXEf?= =?us-ascii?Q?raLFeYN+TeqNJ4iZHWkqbbvblBNNfAfIV5dEiS3OPPr2m7h5Y+iNE4CMHTIw?= =?us-ascii?Q?RNWtlf2qFTzSmBrJvfIi06sDyvI5dsH7+zP2qzGgumSFc8YGpPgu0jfblBUT?= =?us-ascii?Q?B8Yd9GTfugOWAZboe3KLlx6JxwRYT0Ji4XYus7d2F7/v3tDMWaez0RCTMEq6?= =?us-ascii?Q?9Jmv7nwzlk0vb796jyIQzJyhEyDVkQ7RBuXIPGJmMaAhUNrhs4vZBFMyfj/c?= =?us-ascii?Q?i5thTdv1lV2WikhXEmjwz9zEbu/ZSci3B6VrXGH1prm5dMTTTg7d4I16zTXo?= =?us-ascii?Q?8t4TiMxNTxepS/7VTjVnale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=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1; VI1PR0802MB2478; 6:TfyJ19TRV9q4XqK4J01ZLd6BGmLgVKLdba12ev41QNerOL38SHN20QRFn9cw6ewEy28bT3Pwwro0wmTXQVuWtWmr/PlDUkaSN6X/Ljnahy73lJUMSKqrK/Yaprk5K1iN8pkMdHF/Yx5E1iLB96ym6B6U1kxvW9rOoVuN+f5dZPvM6T4DWxs+xxzJrMA6lbCtShUXcxBf1I2aFvQPhlt9diHl0eNVm7nW9mLEK1VBEVOGI56hOjQdg6xDbcR3raoOTWwP5CjUKtPGA8KEzYdxlGDsCjo9WYvF3BSP7/ccdt9/tabqOQQxYmzAMnqqtNgCfdJH2IoDyHpgf30qXAJZ3OPgpNrzn0t4hETmVEExSkf1i2MWeqN4zNEOapU/PVkATjOXwZs0ATa/iq758WxiMfBbl0lnQIzmmwYBCtIuyhV7YtpCDFbFVhK/i24v4sPG; 5:zFRe8LlRH9AuZCRLhfB8taV4yv4YLzrSTVR4z2qc15fDN1fHa2neEViKawL0YW+7XmYR+7mODDL998Cc6yZNbZJOrsgqHEphsZ81KiLNNO9oMMcMOpqaqM4FE+50+d02MffaGlQTvyMO7T7I9VVf0g==; 24:bgawmG5+PBDJHEwqIoPR2EqvPdcq51IHA4GI8PGB82AY9htI57qkc81rrT3fKEgoOL7puDPC8YXsQNNiNq5IorvVxEKlwbkSPAWdW1snnuQ= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; VI1PR0802MB2478; 7:fR9Hl+4LNMDPTqf0bWrXuRCje/Ow9lfsE5sIGL9rcWkRW6VqjRRa2chWIx6JhKSNnEjNX2OLutkpXkZ4BGPhli1EcJ2MntDCEktg6FkAfib5qPFbEfa5IN7db6/QbZ24nySmrmidgknhJEnm3K+cYqtRw+bTQdee1Ee5685nWpGzmbthAZqFGlM2KS2QwMttuD66xM227Z4fGulam79WvqE4WZ8CipiMDEvpbCfS3m+4ygfvWm1j3VdmMvarRwSW2j6O5REeRuglPhtWmQC+FiYC55uP02t7iXxFmlBaIedp7gwf29Lj4V6aUnZ6abP3jVHUeYfrJpBKrKtyepkq9m2XYPYI/XOCGQlxh1RgR5c4jVxaQKrqDFNeJ8vJ3nO7GKWYQgtkwvF1VljDYxiEe1PLktMswpACAJy+2S/VxCj13gFMn2EhZeXurzdHekGbY9N3o629GNbeiM9pRdlxLQ==; 20:XfHLh9TPF49Y3nX5ZMF00bB7M/yI+pHvp92S3tb2g5kNznzFZBb3mG7wD/UjHhy1Es+8Rro3bq67OC8utxyXE2HBRSVPetpImq3TFnbY/+bjq8N6PR2lZyfSDIIUTWV393VrNHyCjiNfXGSrxdqeCePMgnbQ0eZiSuo9Qjn7aGk= X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Dec 2016 08:48:10.4881 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0802MB2478 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: <kvm.vger.kernel.org> X-Mailing-List: kvm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
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);
Signed-off-by: Roman Kagan <rkagan@virtuozzo.com> --- arch/x86/kvm/x86.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)