From patchwork Tue Jun 27 15:09:14 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Lendacky X-Patchwork-Id: 9812399 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 05DC860351 for ; Tue, 27 Jun 2017 15:11:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id ED74627FAD for ; Tue, 27 Jun 2017 15:11:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EB2D1286CC; Tue, 27 Jun 2017 15:11:50 +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 884E4286D1 for ; Tue, 27 Jun 2017 15:11:49 +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 1dPs7S-0008AZ-UT; Tue, 27 Jun 2017 15:09:34 +0000 Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dPs7R-00089S-9x for xen-devel@lists.xen.org; Tue, 27 Jun 2017 15:09:33 +0000 Received: from [85.158.139.211] by server-13.bemta-5.messagelabs.com id F4/B6-01709-C2572595; Tue, 27 Jun 2017 15:09:32 +0000 X-Brightmail-Tracker: H4sIAAAA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com X-Msg-Ref: server-11.tower-206.messagelabs.com!1498576169!85533545!1 X-Originating-IP: [104.47.34.56] 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 23769 invoked from network); 27 Jun 2017 15:09:30 -0000 Received: from mail-by2nam01on0056.outbound.protection.outlook.com (HELO NAM01-BY2-obe.outbound.protection.outlook.com) (104.47.34.56) by server-11.tower-206.messagelabs.com with AES256-SHA256 encrypted SMTP; 27 Jun 2017 15:09:30 -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=alDY2HXOMu2dcCg3q+8Tvm5dJ1EwheNN0llqOcZpsqM=; b=O0r6fEUATu1DV37M3evUxR/pVCdg8NMh8RKRu6NEkRWU/xq5g/jsLfS0HxaES6KVwqA6wgoZJa9idaB6aL+QH4Whhua77lhlDy5WKvopm8rdhEDU/0NGZ/csVYmUtDDmAG30bteLBIrrVsWbogey2N3bK20hhHNcJJJFeiKqHUk= Received: from tlendack-t1.amdoffice.net (165.204.77.1) by BN6PR12MB1137.namprd12.prod.outlook.com (10.168.226.139) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1199.15; Tue, 27 Jun 2017 15:09:19 +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: Tue, 27 Jun 2017 10:09:14 -0500 Message-ID: <20170627150914.17428.14700.stgit@tlendack-t1.amdoffice.net> In-Reply-To: <20170627150718.17428.81813.stgit@tlendack-t1.amdoffice.net> References: <20170627150718.17428.81813.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: MWHPR14CA0016.namprd14.prod.outlook.com (10.173.227.26) To BN6PR12MB1137.namprd12.prod.outlook.com (10.168.226.139) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 08be34df-a294-43d6-a663-08d4bd6e7f09 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)(300000506067)(300135500095); SRVR:BN6PR12MB1137; X-Microsoft-Exchange-Diagnostics: 1; BN6PR12MB1137; 3:rrq64HmVkzqEjX9wfx25rLQKz5UA8Ul8Go7Rz/lchHz8xjW8byNlPrlYDqmHV6I1O6cwhUJGrBxHyHt6dYlVyObNn4IsaNm76YXxfTTyl+gagU4BEI4leec/YRN8g1B61ig2pPAXmXmb6pbg99fMLzfdKHcfqSxitMnkHHnvNV6FL7ozTo7GX6dOHEWRzzm1HVnIvdAnYhIQ3pUMq+qECZgy0JCk708ew7v/Tw7SWzbwxzWqx83kkNRYrMYU/JqHFhHwTRHKl4AMV9h0Nxu/qs9vTe5nPNjV4GnwwVdiechD20Fnt6T/gAkm2UwAeCXNaq4mcXpPQuTvV1vcTv0VNjGebkPpUgIOEKSo5pFomjglnfKpXjyRX/i1+dTdKQaShqV788nK207bpy/v2V/+Pshf5KbrIBXTDgTelrovBEaouPMw5H62mlZMQCuQa1tEGoRYRt3FsDUKCjcymq/fjHLdOpXERib1ZhsAWJUZzQI60xXjr+quPn8DTNcZqxMsLoWPXv1c/Mtr+3RC6vV/5J//XpWHRwyvK4zcscwngZBmPtZDnIIG771KOwe3+1NY32N/X0eBS4hugunyUlFFBr28drXbuAmZdJfDvA5FJRL4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5zyrZBrRVEbQmKpqaOuz/2+bao5D721vvTs2SqJyNgPFi8qr9AoySrTwckGJ+JP9jinHgAPxvKQhHC1Irij1FFheY4ozo6+a3G/oaUlvp/Awfiub4awu/4lKcoZs+x8fWb5HKNlucFB6Ywr4byMFwr6PZsSMRWOIiB5nXYG7o6BXvhxLk98aF3HIsUg4vXMdFftYZJEBuqaDt231heaVTCeKWfo+S9ErM0I96bjRBSP36UkQU/aaWSO59vSt7xDVp8fmRcCKZ81bWTzz1Xd5+mHGbx+tbnVg667vHkxogLS6Uv8s2gCZm7AF3 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(133145235818549)(236129657087228)(767451399110); 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)(10201501046)(100000703101)(100105400095)(6055026)(6041248)(20161123562025)(20161123564025)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(20161123560025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BN6PR12MB1137; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BN6PR12MB1137; X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtCTjZQUjEyTUIxMTM3OzQ6ZXVyS1lZYUtjWTJkUXZpbUZDaC8rcm9kVEVG?= =?utf-8?B?alJWcDJRQ29FMzZFbDVqcThmMXMwajV5T1pvb1JYTEZ2R1FZMk5wL1R2MnVX?= =?utf-8?B?aTFockhhRmQ2d2hFQUVWMkVTdzU4Nnp2SFBhNmxaeWZyQkxaODlSZGtzc2VF?= =?utf-8?B?cVNVeXdQRHcwampzUHdpT2lHZGMwK0RyNjFHUldJYm11TVRDNmxuazZIN3lE?= =?utf-8?B?Z21yV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zL0hk?= =?utf-8?B?L1JuaFNiZE9nc2NrRnk0SVZoRmF2c24yTUUyN1EyVHkvWVJSNWRnRGx2VGtY?= =?utf-8?B?eDNwbXUrUWhkY0toTXZpSVhsOFA2WW1wRXRLSmFIWUlqbjJQYVJTVHJ6MmdI?= =?utf-8?B?UEcwNXJHMFQwaG5KWUY2NDVwZzlIMjZtb2tzbjVZaEJwRTJpY0RMYTM2MlIv?= =?utf-8?B?QVZpUmlKQ0x6WFhUY1dNVmxaRlVCUnRZelRmVWxEb1dXWXBoUFFvTjVaQVNJ?= =?utf-8?B?b1krSVJuci8raWwwM05pSkQxeGVKMDlRdXRVNGtmUXJnV3djQXRXNUE1K3hr?= =?utf-8?B?YUtDS09TK2FlRGxQVDVOS1QvcWpEZjh0K2V6eElKMGx6UEd5SHM0dnlQdzFW?= =?utf-8?B?b1pvN1ZQN0djS2pHaDV6VTVDMnZJNGVyanRBWVczdXlXKytqRndTb1AwRzAx?= =?utf-8?B?Nk42b3FuaE9pQlBSZHN4NkxVVnJUeWtLUFpKeElVSlRwRC8zWlhXdjNIeGI4?= =?utf-8?B?QmVCZW5ldzVwQlJpa1FocFY0Q01qaEFqUkpMaEt1Nk9GT2xnQ05DcUdGWWtF?= =?utf-8?Q?FDStogdfpdgQdm4mNBnkxTC/BP64gbGH9FwAZL?= X-Forefront-PRVS: 0351D213B3 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(39840400002)(39410400002)(39450400003)(39850400002)(39860400002)(39400400002)(2906002)(189998001)(110136004)(7416002)(305945005)(4001350100001)(33646002)(8676002)(23676002)(72206003)(38730400002)(25786009)(4326008)(7406005)(55016002)(53936002)(54906002)(6506006)(9686003)(478600001)(50986999)(6666003)(2950100002)(1076002)(81166006)(76176999)(5660300001)(54356999)(53416004)(83506001)(103116003)(42186005)(66066001)(7736002)(47776003)(50466002)(97746001)(86362001)(3846002)(230700001)(6116002)(921003)(1121003); DIR:OUT; SFP:1101; SCL:1; SRV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Zo3PSE17qVV5KLB90wcpONiHA6vSwG039wgw4CNSJ86S/eJq9mHwDjHSlwiOo= X-Microsoft-Exchange-Diagnostics: 1; BN6PR12MB1137; 20:5h3qXjb/Cud/1uiJjOpRgYo9Wq4Y9NkXpGXdDR0LHNF/9JpCGh8sd4F0vdDXuLFpc3f3+Qsrz/MxUjj4Ep/Y2FhNxcYq/18mro84CkXuDmrIZnODBns4Kv+7/buGeMdZxFxvfrpZ8fEWW9p8idxvLOtGLjU123EPJdGvu7fx+QFisdpyh7+n7abIDuMF/DLtoUYYQMUuDl84enjXJR7F35jxMPrZVlugPYyU8kpQF+vDiY/xTE8HXLB9wvhNVaDV X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Jun 2017 15:09:19.4598 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR12MB1137 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 v8 RESEND 11/38] 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(). Reviewed-by: Borislav Petkov Signed-off-by: Tom Lendacky --- arch/x86/include/asm/processor-flags.h | 5 +++-- arch/x86/include/asm/processor.h | 5 +++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/arch/x86/include/asm/processor-flags.h b/arch/x86/include/asm/processor-flags.h index 79aa2f9..f5d3e50 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 @@ -32,8 +33,8 @@ * CR3_ADDR_MASK is the mask used by read_cr3_pa(). */ #ifdef CONFIG_X86_64 -/* Mask off the address space ID bits. */ -#define CR3_ADDR_MASK 0x7FFFFFFFFFFFF000ull +/* Mask off the address space ID and SME encryption bits. */ +#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));