Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753496AbdGXUKy (ORCPT ); Mon, 24 Jul 2017 16:10:54 -0400 Received: from mail-by2nam01on0080.outbound.protection.outlook.com ([104.47.34.80]:6848 "EHLO NAM01-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753606AbdGXUIi (ORCPT ); Mon, 24 Jul 2017 16:08:38 -0400 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=brijesh.singh@amd.com; From: Brijesh Singh To: linux-kernel@vger.kernel.org, x86@kernel.org, kvm@vger.kernel.org Cc: Thomas Gleixner , Borislav Petkov , Joerg Roedel , "Michael S . Tsirkin" , Paolo Bonzini , =?UTF-8?q?=5C=22Radim=20Kr=C4=8Dm=C3=A1=C5=99=5C=22?= , Tom Lendacky , Brijesh Singh Subject: [RFC Part2 PATCH v3 24/26] KVM: SVM: Clear C-bit from the page fault address Date: Mon, 24 Jul 2017 15:03:01 -0500 Message-Id: <20170724200303.12197-25-brijesh.singh@amd.com> X-Mailer: git-send-email 2.9.4 In-Reply-To: <20170724200303.12197-1-brijesh.singh@amd.com> References: <20170724200303.12197-1-brijesh.singh@amd.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [165.204.78.1] X-ClientProxiedBy: DM3PR12CA0049.namprd12.prod.outlook.com (10.161.151.17) To BY2PR12MB0145.namprd12.prod.outlook.com (10.162.82.18) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 999cd191-bfc7-48fd-b208-08d4d2cf1abd X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(48565401081)(300000503095)(300135400095)(201703131423075)(201703031133081)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095);SRVR:BY2PR12MB0145; X-Microsoft-Exchange-Diagnostics: 1;BY2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a7JmrAYGsOqmhy4qhRbKakdaTa1CVmCLJXakNPdsm85E+VKlZ0Jrx40vq8J3/rhlS83StVSDuRwO5UDDixKpx3ApVTqpv0ZQd3fFMH9pSDKrnbQSxTAztqSET25gvOyRyQf7o8o35WFrhTW8POtCgIek2VnhyAt8k7ux4OOkprxijx1ugJpK0T3NVrtq4bky2HhKSxB9gX3OShXF/y1Q+l1j+KvSVKixU/kRFJaV+M365MiAYxsioLTKVQTCZntDmqaeIyCFV9pElATCX47pfNomdyjKu5JJXXblhD9fbFpq5EDXA7BPkSiGFl8U4dfJ5ysQinm1CrBFToYQuCgamAD4= X-Microsoft-Exchange-Diagnostics: 1;BY2PR12MB0145;20:BTlnqDuncJ9mjqjvdwTx6b/5w3FmDIR7ZJXkwLSIBvFw4ZemZlLzOwFBY6r10nYp2qtdxwyH797paWm0sYOvS1NVwKWbcKsz96POffw5aBsltRMLy8Kx67FtqWdcr8QMRqNj1k9O69wULqf87rDQhN11V7SnUOqHx/lI2qSshLFSChTXHAr1g3Sf79RMy/Qzbc0c0sKrOAfOl7Q/oUkTgUBZHD1qBvSyD61WfHYTBnNp64uTPfqMVzUgxBPHKfBvBtlQmKMcf3+n+PPDz2YmYDmIK0YgRyCmqIuEMYXTluQDVJcLpip7pusxps+WNwd23iPRW8zobkjyMRKwaTGCjPBvMtSK6/4/7HURlAO2vyNgW3eBd+MdCXf/xXn70wofpUeKyb4sSdM3mhgpk1c5+/P2sxtaLDbpreieb8SZN4SW/ajDfnkJmhsq8LMI40eRcniSav4ZIgZDhT/XBWjQdQk2N3j9zIQZ8gRlxKD7rFUCy/T13ho+1XEzIvULFHtw X-Exchange-Antispam-Report-Test: UriScan:(767451399110); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(5005006)(8121501046)(3002001)(93006095)(93001095)(100000703101)(100105400095)(10201501046)(6055026)(6041248)(20161123562025)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123560025)(20161123564025)(20161123555025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:BY2PR12MB0145;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:BY2PR12MB0145; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BY2PR12MB0145;4:qHm1I5lYtZhBm9FWIlusK77TZR8zmQdwEMcX04lIfM?= =?us-ascii?Q?fm/+fqqcfl22H2fEc7KiVDS/WA3zDS7ui8SrvUqDidakVxayJwGQ9AfX69Hx?= =?us-ascii?Q?W53mKEhPV922kxYYdZg77TmlkH/kLTHpP2VPlkzIUOX/GSQtrQGyfeyWqLvq?= =?us-ascii?Q?54bAu6nBdPGvsNycuZqgcIEdBi61sjnnViRUZnfjQVXaA3y37R3QGt+ObOq2?= =?us-ascii?Q?h6J8v8O0YMLrxGl/A4/FSlZjE4L5DyIHgIhivfRz+ylGwe7i0a1lYEkVIMKa?= =?us-ascii?Q?5fX4P7it/pFMfy1pB2mz6bFw/+s7QoL1LR/Y4NBzDI/EfRatjFxK9wgdAOQ8?= =?us-ascii?Q?z0S16S1ioDWzD7sgTi3DqBUSxHGjPWLX3hSoIviyHJ4ofuCfZ58Mm2ckYew+?= =?us-ascii?Q?5Ti6wEDpjmBXTDd3pNLqp978Fx6vm5c6CK3th6vpH1E5w2L85jyIESMv1uwt?= =?us-ascii?Q?EpeA6BlgEmFfztbOq5LyLueqqPDMr9h+oWneVCXJcD55ubRylidqGWOHsHMG?= =?us-ascii?Q?G+MOXqj4CHX6NYKwRexaZxs3aZu1hPWd0WPQZpEE/0ao+2+luYsW3dJmujGt?= =?us-ascii?Q?1RJiCn3BNkA0lMNNWZnA/QeCodZQ/RTGaqupzkAFp6liBAiC+qHZTRYtu+MS?= =?us-ascii?Q?mfDsDmdVw4W8a56ZY3fSSOlEiPjzrhDHkg2lO1PKSuUFLkafpwMaFCy4CFxu?= =?us-ascii?Q?BtvzhVO/P1a/Ois3KkWyctFZYZbEAVy4sm0MoOhbK39a9No9zFySqa4tJp64?= =?us-ascii?Q?Jqul6NXq5REfUHWrgpsXGQfIFJYrab19SCEg8YxUM+oO3ojOdsQMhJcyAMGB?= =?us-ascii?Q?7eNzzHOJtGNK7hxuyaap1jVWg+IaX+oi2DwOUHae+SCCRU8brKPEhfPwxpYv?= =?us-ascii?Q?QV3sPDe0+TYwtQDjrljq0nwgWrD3PYMXizSuL0d15PdZ6LNJJjq7Qlqa3Vg9?= =?us-ascii?Q?8BUt71yaoL+SkMDOdcGV6pz03kSRDKUK54XZIIU9vMyVSBIzl6dKHPRPm2yM?= =?us-ascii?Q?DW360Uu4dbXataOXNSR9K7NrmgL/o2uth/5yKY6ehbVxxdwZTHWwjY6XAZrM?= =?us-ascii?Q?atG65a46yjUG96DNw2G7o4b7pULUVyOFnJHj64EEea30tnzTBsjh1DA8jHyh?= =?us-ascii?Q?FqIjt+8zMoeQgtFwSbW+dIqLUv2OcER7tGgi+zns7s+2NZHNyKREEyySidTT?= =?us-ascii?Q?4Jd0KBgqPNYkULTuKGN5a/pQ1H4VsbLoA8?= X-Forefront-PRVS: 0378F1E47A X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(4630300001)(7370300001)(979002)(6009001)(39450400003)(39410400002)(39400400002)(39850400002)(39860400002)(39840400002)(189002)(199003)(7350300001)(68736007)(53416004)(105586002)(54906002)(97736004)(50466002)(6486002)(48376002)(2906002)(106356001)(33646002)(6116002)(1076002)(53936002)(3846002)(189998001)(101416001)(6666003)(2950100002)(478600001)(50986999)(76176999)(81156014)(50226002)(38730400002)(47776003)(5003940100001)(86362001)(25786009)(4326008)(36756003)(42186005)(8676002)(81166006)(110136004)(5660300001)(66066001)(7736002)(305945005)(969003)(989001)(999001)(1009001)(1019001);DIR:OUT;SFP:1101;SCL:1;SRVR:BY2PR12MB0145;H:ubuntu-010236106000.amd.com;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BY2PR12MB0145;23:n6heMpq8mEyI3BkBd8iVsOt/4zPJDs5MoQh6/k3Kf?= =?us-ascii?Q?zrEc0EchLLzpy8ssjk0iNyFz284xHswasFtRRaz/NEViM2TsWwMEsgOSbNx+?= =?us-ascii?Q?GqrAkVwawNecepu4DmTDZYTh+OR3VEAZmmNtpfqxvzmdrHGQlxJO0j4cfkA+?= =?us-ascii?Q?rQchC7lmhJHeHI7RTFS6YysbLJ/tripfrksO+d2pN0YsJ4VYBIlS/z7+vze2?= =?us-ascii?Q?3BjlA6H4yNWHVfPGqyX2e+1xLEGHS+vFzVELEMdkZAcSbQkMhGN9gsCoK3AQ?= =?us-ascii?Q?ZW7S0ft0CXpQIdcgJni+augrijzHjB+mMG6wr1dwndl9Q7Litlw31Y3UCl9a?= =?us-ascii?Q?L+Bb5ugLcc5vanC6A8rrweXyz1R5lWJSk3ta3AlzbXpab+td0xpfFtH9Ys3f?= =?us-ascii?Q?p9lP7YmsaAUlxlkyQ4vAhVv3MJASMPgVB1PY3xI1ejiadeyopeI23l6ZgxGZ?= =?us-ascii?Q?lTYsFDwEFtwabkDd2YDa0RJwZFRHldtNlsx+Dru+CMHq5bg/ICda7aFsLmaN?= =?us-ascii?Q?4uSI+DWdKlHPH37q4z78U223XszwWWlevwJCjPdBwivJWxk0oVBZH8CTCJ3z?= =?us-ascii?Q?XbVpZct79hZCZIcCfBbSmyQBKYOZGzcovWKSkCZe1gJGyR9zDNpqVCxVN/FX?= =?us-ascii?Q?MBiC5VLbRQLqW9TkKzgOkUWTtou/WbiZwsIlju5VUT41MLQ1qlbWZZW7LamJ?= =?us-ascii?Q?b5N2YJQNjhZrjMxkomQA+M03f6JqAhiReBNju5DlMASHXfzBgM4RxBX2SGb5?= =?us-ascii?Q?CNcdjRSJMeICOa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LM2WBBGETtnlny//EOnHhcvLOIGz6FgWGVHYfPdnSpXqFk3+K/AxqH6zdJ5/MbTh6b0MubIKtAP4Tz2YL9KyLWroAiIkTX5WpYhimB15fPDL4Ko7sJ8bZax/Tpoc1WwHONX1dNbeVn7TWIcJ7vSvbhlQf+yxkoluftJLWpfNcfC9qpTJhvtV99C2l8xC9fRog6YCgecgAOp3RD69YjuIORBF1hX/bgVghiIPq7YDoFQy8M6ZrK40a8BW9CIsvR5hEAqWD1GhkHqTkmAd20U3JjcGE6e9SfhRGdWEOcWBCaD2dpC/M/F56RqmgLYMbJB7+cOz+6vPonL0gY0KbgtHWxzSKq0NOWbg4vI+JBkrhqMlTk9eu8xZYaksKrE2iQNsdiMvfMM= X-Microsoft-Exchange-Diagnostics: 1;BY2PR12MB0145;20:fyPXxocKWXRCJdq3MWvJ7656l1vqu/ZTK2069Tzg9irM3n3UI/rPjXVrldZ7dh+9LV8C9Yu6QAd/l6AMa79ismFHRM8cGw/29AWAgHXxApyHwUPC9a1y6u+9B0x00LLvPZ8MoYLtJE7hN2nCiTogI/HTzMMxUHidF2sWbw2yPKu3GEWTP8ZuRxTq1waqGAU+xAGEaITqrLuhbduR+HwAY5xSXWcowAkpwwsS8YyW9szBeYjEXR22JB5E2o1CMeeb X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Jul 2017 20:03:50.5097 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR12MB0145 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 785 Lines: 23 When SEV is active, on #NPF the page fault address will contain C-bit. We must clear the C-bit before handling the fault. Signed-off-by: Brijesh Singh --- arch/x86/kvm/svm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c index 0bbd050..64b9f60 100644 --- a/arch/x86/kvm/svm.c +++ b/arch/x86/kvm/svm.c @@ -2321,7 +2321,7 @@ static void svm_set_dr7(struct kvm_vcpu *vcpu, unsigned long value) static int pf_interception(struct vcpu_svm *svm) { - u64 fault_address = svm->vmcb->control.exit_info_2; + u64 fault_address = __sme_clr(svm->vmcb->control.exit_info_2); u64 error_code = svm->vmcb->control.exit_info_1; return kvm_handle_page_fault(&svm->vcpu, error_code, fault_address, -- 2.9.4