From patchwork Fri Jun 16 18:51:55 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Lendacky X-Patchwork-Id: 9793243 Return-Path: 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 EBFAF60325 for ; Fri, 16 Jun 2017 18:54:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E01E32865B for ; Fri, 16 Jun 2017 18:54:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D481F28670; Fri, 16 Jun 2017 18:54:10 +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=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 422432865B for ; Fri, 16 Jun 2017 18:54:10 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dLwLs-0001wc-GM; Fri, 16 Jun 2017 18:52:12 +0000 Received: from mail6.bemta6.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dLwLq-0001ve-OC for xen-devel@lists.xen.org; Fri, 16 Jun 2017 18:52:10 +0000 Received: from [85.158.143.35] by server-8.bemta-6.messagelabs.com id F5/67-03696-AD824495; Fri, 16 Jun 2017 18:52:10 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA1V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!1497639127!68405463!1 X-Originating-IP: [104.47.41.46] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 9.4.19; banners=-,-,- X-VirusChecked: Checked Received: (qmail 26138 invoked from network); 16 Jun 2017 18:52:08 -0000 Received: from mail-dm3nam03on0046.outbound.protection.outlook.com (HELO NAM03-DM3-obe.outbound.protection.outlook.com) (104.47.41.46) by server-13.tower-21.messagelabs.com with AES256-SHA256 encrypted SMTP; 16 Jun 2017 18:52:08 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector1-amd-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=bJKeJV/jI1NWUDEAtUlIj/+66scdfjwhXcoTdRdF9wg=; b=IixoTzFhFzMPlpj4UqSTOAvRwwLR2Nd2YbLxFoEcVgWwzeSDK90KGiSgI5XuNcEE3wBhPlfdWo24G/zPIW4CTP5DQga+8oKGDbBKCD+H1Fu7MGS8idmkx2jXnQ/MVP5X815QnBUXoxKxSXXW8BmoimRBsV6rSXlJTb57gDFXKjs= Received: from tlendack-t1.amdoffice.net (165.204.77.1) by MWHPR12MB1152.namprd12.prod.outlook.com (10.169.204.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1178.14; Fri, 16 Jun 2017 18:51:58 +0000 From: Tom Lendacky To: linux-arch@vger.kernel.org, linux-efi@vger.kernel.org, kvm@vger.kernel.org, linux-doc@vger.kernel.org, x86@kernel.org, kexec@lists.infradead.org, linux-kernel@vger.kernel.org, kasan-dev@googlegroups.com, xen-devel@lists.xen.org, linux-mm@kvack.org, iommu@lists.linux-foundation.org Date: Fri, 16 Jun 2017 13:51:55 -0500 Message-ID: <20170616185154.18967.71073.stgit@tlendack-t1.amdoffice.net> In-Reply-To: <20170616184947.18967.84890.stgit@tlendack-t1.amdoffice.net> References: <20170616184947.18967.84890.stgit@tlendack-t1.amdoffice.net> User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 X-Originating-IP: [165.204.77.1] X-ClientProxiedBy: BN6PR1701CA0016.namprd17.prod.outlook.com (10.172.26.154) To MWHPR12MB1152.namprd12.prod.outlook.com (10.169.204.16) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 5324b597-c60b-452c-207d-08d4b4e8c745 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(48565401081)(201703131423075)(201703031133081); SRVR:MWHPR12MB1152; X-Microsoft-Exchange-Diagnostics: 1; MWHPR12MB1152; 3:Cd1U6mm/pPX/+GX/rQdFEdY5Jg23Xn8ydUpc/g89AQzPwrZ26bSX5SG6ZmPrEueWlL1SCG84cI6U3jRcnRwjn7iECgQSnUKTCwQBe0zkMvYCjiBlt2XUoPXRhoggoHJlf6bgfPkBxMoc1Lmg+eZyy28g0i6V6OBJTb9ziXb+nUvHmNIy3aP1Z6I0m4jbSWauhzCPYMoHk3o+g3wIBcFiC8xN5yekQa1bjb7idkoaG8b9SM58nDtu8CVLN9EOQyLeF4P9atI+SruQ9iFzKNvUimAh9U127NC7+JTJkJWDQZa/f8sAL33wBeJxl6bXgBFOGChmBMD0cj8iUYI8EaRxe7512Mxpog1UVqc78qhll1k=; 25:sKUN5Hvc2LSfFIOqkZrWCMxHYdflz0xak0bh5i2CKcfReR9yhSF770j0rvzvyGMiO+bz7/kx4fdaZ/WMThV7GqY9urGX7i3rgqem0Ftb3P9JYD7RIbfPYGfwcGFhJoPbsRIYe0W2XFO0LFj4tNpAu5VhWoqmzOYO88AEb4toT7OssQVUZ1LZIGzDz82n0xyYoGz9SLCiK7QX+/e1nN/xBp71uThsfCDOljvEKJj4Ka0HxlzhEd0UMRuSxVCT9Tz4NgHElGTAPtkZ5COt9CxVzD9CDORe/ejWIrfLfR6QMJxY/p43bsUFcJ7yfGs61qNB5yKBsA4lEPD+tRWBiwDVBjnhCwfR6F3OhkMiUSpXMOD2riD9PhA1aZnubnvLwbEi/LXGUMZAhjuOoRImStRPb+HnQDNIHue2JYhExn8xVDHbtyh2litLhGti+QBXNtdZMcid59U3YOc5JWbvzWajfTzXRKaqczOAErZUtU92vV8= X-MS-TrafficTypeDiagnostic: MWHPR12MB1152: X-Microsoft-Exchange-Diagnostics: 1; MWHPR12MB1152; 31:jqrF3x5tGXtimzsqqA4v5Rl0HsbkpF6Xj7hs7atvAbK+c9NSDO0TIE6tKijczd8vbBTC70XotS26PeVDJ+aNJBFmi15mM4iHwAM3eJkOe7YCRXHmqUgKDo9JrW37xK0IQ5cdAWyimQ6Se3WoV4Q8AHcKpIkkTc4+u4w33XaMIg3XKum2eTM77VoJmUmWkGeNJAu8Ezvz/OnSCavjibi2QH+1eALPzCh2TtOh2kmre28=; 20:0ZdG6UwLzD65Ken9s6Q3RaQp49tiq1DXgZ9FDCBpVF4XVkhwk2ksJ9QGI3//WIqbXpWvHkP12fbQC04kOn6oLkoV/IXNUMk57dFLu/f9LGPrfxRHlpFFI6lqOAfCozs34neVER3DDm8faFPMUw25rFKYAePCWdECSZKWmOwCKH1+nqZ1/YrAM9x0fxWueckGyb7gsXMIV6JV4Y6DKCNb6EPQ++NF2pLezdmL5O2gzN8bixvgFfj2fK65eDi/LNxVtzjbDhXyaqmQUjAO63lSwR7Qn9wEmv10LUD7U9APn4gNzdzDOIDRoF4fe+cO6DRDD5SP2SakQ41TDZ/1XMdAhQNKrAKhzv9bzK+GFtBOeCZLuX9PQnSfTyqWyYrmxvckvYjSrhBhA5V+acajPU/G/N0ATpxlZFDR1pBngSvcBPApgy+SCO6+KVy/N3cQjn1Qbq6vmAObJ/MUcZvzTfxxFpUzeZmtwWLrjr2NjWLy1KFkgL53WoamcgqrI7urCpXr X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(767451399110); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(5005006)(8121501046)(93006095)(93001095)(10201501046)(100000703101)(100105400095)(3002001)(6055026)(6041248)(20161123562025)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123564025)(20161123560025)(20161123558100)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:MWHPR12MB1152; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:MWHPR12MB1152; X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtNV0hQUjEyTUIxMTUyOzQ6aHZDb0xIOTRTNndma0E4UFlhZ0VSaFN2ZFpK?= =?utf-8?B?NGJMTmZZRUpZTzBLZldrYTU2bEhmNzlpbWJQb3pJWjFKYjhYbk5IcHRSTXZs?= =?utf-8?B?VDUvNWVpQ2hDUWQxaFBoc09ucnBrWmRIYXRhUWM5TFF2cHZ6WHF3MzFNU2FE?= =?utf-8?B?MWtwNFI2RDBocjJYUlRXc2x3dTN1bGFSRnpMVk5GUVN1SFRpNllHK3ltRzR3?= =?utf-8?B?SEI3VENkdEJJZlhadzhkdTdsaXBjem0zeksvQzFhaWtlRm9MZEsySHd1a1VV?= =?utf-8?B?MXU2Q2V4dTFHQzBKZXpGbXIwRGRzbjN4a0FTTWs0Z0huL0ROT1NxWlE1Zjdv?= =?utf-8?B?TXo4OFF1SERtMFZDTzVmTmFNSkZJQWVPVDFMWGlMWnFtdTF2dEd5c3NSVzE3?= =?utf-8?B?b011K3RhZ1dnNnY5YXptMkp6ZGgrc1ZRTWhhc3Q2a2I4dXZvVklnL3gzK3F6?= =?utf-8?B?UG1WU2QxWnVGTXIvV1ROWWFHQ0VDQUhMQ0RqbXVKenlvTnhXQURmUDZoMzFN?= =?utf-8?B?NDdDbmluS0lkbzVZUjl6b2U1czBwWUU0OXBHakhma3BvQUxNM1JZYkZmRG9W?= =?utf-8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FTWDlV?= =?utf-8?B?Tmp1bFZ6N2tHT1RCMnE5UnBLajJtcGRGVDZuSHpteVVzMjFUWnhVUUFkRUxk?= =?utf-8?B?RjRPdG56aFFUcURDVmE2eit4WGtCNWM4MkprK0ZpL1BUMW5IS0d1d2krejAz?= =?utf-8?Q?VDXC4oOIxA7GI42ur16?= X-Forefront-PRVS: 0340850FCD X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(39450400003)(39840400002)(39860400002)(39400400002)(39850400002)(39410400002)(230700001)(50986999)(25786009)(7406005)(72206003)(76176999)(54356999)(305945005)(50466002)(6666003)(4326008)(7416002)(81166006)(4001350100001)(2950100002)(86362001)(23676002)(478600001)(6506006)(8676002)(83506001)(55016002)(53416004)(103116003)(33646002)(6116002)(3846002)(47776003)(53936002)(5660300001)(7736002)(189998001)(2906002)(9686003)(38730400002)(110136004)(1076002)(66066001)(42186005)(54906002)(921003)(1121003); DIR:OUT; SFP:1101; SCL:1; SRVR:MWHPR12MB1152; H:tlendack-t1.amdoffice.net; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtNV0hQUjEyTUIxMTUyOzIzOk9lQTBmOHdWVzFvMVpSZVRDRkpmUndDZGE1?= =?utf-8?B?YzA1OXBieFNlT2hsd3RHUGUxZWo0RG9xZVM5b052Tnd1R3Y3WVl6Rnprcks3?= =?utf-8?B?VnlaQVZzRXAxRnRyeUdJY1FPOUZNMFBwc2hqTk9oTjBLa0ZaOC9xL2NOM09C?= =?utf-8?B?azg1N1ZiS3hZNlpCM24vdTdCVHRCOXUxWUxycmZMeXluSzhRekwyU2ozeFZt?= =?utf-8?B?WmFCNERONjQxc0hoNFd2Vi9lWWpvVFRlWENWbHRhTmsxdVNlMEFIelZUYlor?= =?utf-8?B?ZDJPL0xmRmtUak5LbmlUcVJ4a1V0TWJ1NGRJaWl6ZVoxZUtwMmthTnllakoy?= =?utf-8?B?MDFlYTB2OWo2a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?utf-8?B?bjA4aUdDOXR5TEFvdkRoWmhnVFpiQXRnUkdZRkFaVnNtWDkvRnd0NzZ4Mkhn?= =?utf-8?Q?cH6he/V?= X-Microsoft-Exchange-Diagnostics: 1; MWHPR12MB1152; 5:ZceHItt99AbIQjdpW8pgohLNPqR16LMiXF72fY8tmjrHRGATt7ome8OXtIYsOmy1CQUuC4Z9/gPAv/XIJzPI03ZS9pfGvu0Ormj9G5O2MJip+LADOMlATALdIit3od56yflNTM+aydk/jEPXlP9glU9DE+SGh7qs0zfEzPxT5szPfz2Y7hHAsfPaxb7Wg4RHDSqEsuNDhSqjx8x+UOF9zCXgadWBIbwl7IwjjzzSF0OeOY/am5bJlFx6CpNLm522lzlB+8kNdMTVGqSTZIDlNW5msOc1STtojuEtQCogf7VPtpyO/2zZc7vfpeRSzWVAgIQHOKfjqtL5rwJzrm75kZO94mwYIH7CBiS2CPnyljGOevl+anC0hT9F4OaGKBIik90QzKulQjycLK/CAsAZLjWt2KdRk6NQTvtyd6bUOAkSKNCoENEfENX4SYaRUn76a1EkF50JyfC2y0Tsa6sw/v4PHiWTbM+SMlaYKavEGoS0CaEkR0vHzv5TFraRF5dq; 24:gagKc8cN9elyKEQTgQlaBAC9fSN8RVStYwqm+odxz0thytQXvS5cf2EnBLEcF095pcUjdwpribn66SYIbxXXxkzEsGzQG6Nx4mzdSWcnHWs= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; MWHPR12MB1152; 7:tdgOlBfnQ8bMpHyA/ZOST7mdy5sYERcWQxKfsAP+7+YvtY4x3INEvpSEMx98GpHmonTMCcs0+C0QLFPgYKgqmECWWXJ26tA/VxRkEyqOi7288jzd0O2W71lJtkBlZrMj90CucMbsqKKn7W1/974trzknx3bm2jIjM2JwKCg4hWJg1w/pY76ZHYWNnWH3vX76RswIXXMSnOUxnG6kJezAvX9u5lJzDdBipfjqBQn6K17lW4BGUrIACXKV3HFGumX/ChtS6Pyd4SkUoVKaEpL4JW+R0y0ozh9MLR+u92/TBmVb6jjlHsMNuic1J4+v+BuZaPND9RRrJ6/zePzETF2EXZn/d56PBuEQP3fn+tdNd10Wjr9c6M03gxcT7SSAgeeoRi8Xsr7STxduL4Xj9aawNSGK+uUODBCnwfftJZ6MdecXDsx+4OhlZNxl7ebwd7+we5E6aUgvWLOe0H5PWkb9qxDJizQqgl806jukZqWsWClq4v2XK5YZQWO2cw+Y0+vIvSdqD6DGkulTMILk0fQpGniKubS4hGPezhH4OGpl/X2R0T4lf2lBTThgCTDT73u8F0YqVl+POZCgXCcMSk+ouA+No/gwOZRMpYurXexvohdMDlP+6+3F2DgMKU9aYsFbxh23iDD34zVt9Lr6BroB37s7pSAipHGEyM9/rAKmstRRrnK8A9k0i9I+SHj1LzE22wEQOhJnypmge4LRXa9mmSXFjyrHVXZY2TDyrROlJizgvK3GnI7Ha4HsxJH1HJZskUAtM7oVxs7HzjmHb0UTMdv2yDgucjsg7vV9C2rQWUc= X-Microsoft-Exchange-Diagnostics: 1; MWHPR12MB1152; 20:C6KMd/6IBcVjxFxBV+PX1iD9+VtxvmbQg1WrelX9RV5RX9GAQAk8HNfi1Aa8sfQZB+haDtwhHkr3p10kbYeemOiIpfmd53RBZeusm3GR/D21Mapi906AjZSTfBLfl5QTfVvFXLC6SDz0nGRKm9njZkuOj2IRI1wFW/vagmaeSGjndnaJMQEZjGWaGkmz+QAtLY1+39h3AJxr4yAUR/hQkwhw59FuDFzetNFASXyzkgLnCXLZwDpBX80uAW4pyGim X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Jun 2017 18:51:58.9690 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR12MB1152 Cc: Brijesh Singh , Toshimitsu Kani , "Michael S. Tsirkin" , Matt Fleming , Alexander Potapenko , "H. Peter Anvin" , Boris Ostrovsky , Jonathan Corbet , Joerg Roedel , Radim =?utf-8?b?S3LEjW3DocWZ?= , Larry Woodman , Ingo Molnar , Andrey Ryabinin , Dave Young , Rik van Riel , Arnd Bergmann , Borislav Petkov , Andy Lutomirski , Thomas Gleixner , Dmitry Vyukov , Juergen Gross , Paolo Bonzini Subject: [Xen-devel] [PATCH v7 11/36] x86/mm: Add SME support for read_cr3_pa() X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP The cr3 register entry can contain the SME encryption mask that indicates the PGD is encrypted. The encryption mask should not be used when creating a virtual address from the cr3 register, so remove the SME encryption mask in the read_cr3_pa() function. During early boot SME will need to use a native version of read_cr3_pa(), so create native_read_cr3_pa(). Signed-off-by: Tom Lendacky Reviewed-by: Borislav Petkov --- arch/x86/include/asm/processor-flags.h | 3 ++- arch/x86/include/asm/processor.h | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/arch/x86/include/asm/processor-flags.h b/arch/x86/include/asm/processor-flags.h index 79aa2f9..cb6999c 100644 --- a/arch/x86/include/asm/processor-flags.h +++ b/arch/x86/include/asm/processor-flags.h @@ -2,6 +2,7 @@ #define _ASM_X86_PROCESSOR_FLAGS_H #include +#include #ifdef CONFIG_VM86 #define X86_VM_MASK X86_EFLAGS_VM @@ -33,7 +34,7 @@ */ #ifdef CONFIG_X86_64 /* Mask off the address space ID bits. */ -#define CR3_ADDR_MASK 0x7FFFFFFFFFFFF000ull +#define CR3_ADDR_MASK __sme_clr(0x7FFFFFFFFFFFF000ull) #define CR3_PCID_MASK 0xFFFull #else /* diff --git a/arch/x86/include/asm/processor.h b/arch/x86/include/asm/processor.h index 8010c97..ab878bd 100644 --- a/arch/x86/include/asm/processor.h +++ b/arch/x86/include/asm/processor.h @@ -240,6 +240,11 @@ static inline unsigned long read_cr3_pa(void) return __read_cr3() & CR3_ADDR_MASK; } +static inline unsigned long native_read_cr3_pa(void) +{ + return __native_read_cr3() & CR3_ADDR_MASK; +} + static inline void load_cr3(pgd_t *pgdir) { write_cr3(__sme_pa(pgdir));