Message ID | 20170627150005.15908.84160.stgit@tlendack-t1.amdoffice.net (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <xen-devel-bounces@lists.xen.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 B249C60351 for <patchwork-xen-devel@patchwork.kernel.org>; Tue, 27 Jun 2017 15:03:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 30A6A28111 for <patchwork-xen-devel@patchwork.kernel.org>; Tue, 27 Jun 2017 15:03:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 254B828401; Tue, 27 Jun 2017 15:03:13 +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 98C4128111 for <patchwork-xen-devel@patchwork.kernel.org>; Tue, 27 Jun 2017 15:03:12 +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 <xen-devel-bounces@lists.xen.org>) id 1dPryT-0005FR-QH; Tue, 27 Jun 2017 15:00:17 +0000 Received: from mail6.bemta6.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from <Thomas.Lendacky@amd.com>) id 1dPryS-0005E7-2j for xen-devel@lists.xen.org; Tue, 27 Jun 2017 15:00:16 +0000 Received: from [85.158.143.35] by server-4.bem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ypa+Pjm92jOkp0Qjl5JACiL3F6Aq3R6lAwAA X-Env-Sender: Thomas.Lendacky@amd.com X-Msg-Ref: server-4.tower-21.messagelabs.com!1498575613!69714324!1 X-Originating-IP: [104.47.38.84] 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 31571 invoked from network); 27 Jun 2017 15:00:14 -0000 Received: from mail-bl2nam02on0084.outbound.protection.outlook.com (HELO NAM02-BL2-obe.outbound.protection.outlook.com) (104.47.38.84) by server-4.tower-21.messagelabs.com with AES256-SHA256 encrypted SMTP; 27 Jun 2017 15:00:14 -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=283sl58O+0HaPa9YDphdA6fj81YwvB8b9tivyfD++Yc=; b=nxz078JuFvvyWCf5baNyzr1R1aeet7D+c4mLpHtd5SHs1+CS7UbX61yrXGLvHrGfNL2hXACF3Lzq4Y+xQpp6zqDFOAN2fL+ZgxJzjxIRpdGF5vPwYMQEY59DQYoK5k4Bc809259QMNPZTs3L8VqbChU9Fl+dlwDbnE8uKTKAjk4= Received: from tlendack-t1.amdoffice.net (165.204.77.1) by CY4PR12MB1144.namprd12.prod.outlook.com (10.168.164.136) 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:00:08 +0000 From: Tom Lendacky <thomas.lendacky@amd.com> 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:00:05 -0500 Message-ID: <20170627150005.15908.84160.stgit@tlendack-t1.amdoffice.net> In-Reply-To: <20170627145607.15908.26571.stgit@tlendack-t1.amdoffice.net> References: <20170627145607.15908.26571.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: MWHPR14CA0013.namprd14.prod.outlook.com (10.173.227.23) To CY4PR12MB1144.namprd12.prod.outlook.com (10.168.164.136) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: fb584750-3baf-4f74-5b05-08d4bd6d359a 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); SRVR:CY4PR12MB1144; X-Microsoft-Exchange-Diagnostics: 1; CY4PR12MB1144; 3:uEI7GF4FKEJhy5FFlLSo4erY5Lm8sNoxsw7MeaO30+1KYW69OZ4b4UOQwKJcq1qA5NqBJECBh4Km58RDMSVmW4fOr8MtLYvWKo6o0m7GSPdXgPzSLMIku+Zqaeq+6NS+4vEDy3i6m1Nn5H98/+VWH5kUWDv9w7yuGmmKg1obFKU5MOJUfUu8LXFIjkZMbKE6A8yAiuuH/BvMlHLRJVGEpoYnWfntEIueK7/pA7fQPCRaLPXS32BJYSspBhDC9YicQnOOOOCM7Zre3wFdKWXjstWTVQRdaw0YQgI8Hmc170Y7/Zfq6x31O5K5HnV8zvqSNS+TafbIvRRmvrJxdq1d2ymx3ewnXf3nBlbOlLzH4GhYOCGJ0dwoVj7/BUNh/GR3QV3MUAd/4y/pzoIHy8huMLpWeWZqkDx3lA14ORcVQXzIL0U5cROIsJg9W1hWuWdrKlm/Wi87Af0bYfZR5Zbr1J4cZDFEsOEPCbG6xPnA7vLua7dZhId7V53eOmqh5xXRnC+xWX7zPUyRpcVVBxT2W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2FqfoX+1pfSruXFX2bV8+4jMt2w5Udwb77SiYzbGj9uHWrUiLB9hMy82rmBpfTidOUTGfTHBq+4XzJ3yk+8Lk5eRyx0DAvLetcAdP97wkkvoowcxRX3DKCU2kHNmGECCVJfIVGkV4WfFfeWWxofQCuJl8eicGeg1rzStLgb6EKKkvhjFjxKM+r5QPCTdswelQ0ROe732jJ0KVSBzddH1dOusZiRejlWALe/ekGORgP0TYR4WnIkxpsVGvKaxtH0mi2Bc1B6AWyCqsYDSngnQVIp+RWZxBmYXIL3iTgGJp7rqbqnX8ia4IrpxXam62EF+KP2rVJ2o7h X-Microsoft-Antispam-PRVS: <CY4PR12MB1144168B78E899D945A8BFDDECDC0@CY4PR12MB1144.namprd12.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(133145235818549)(236129657087228)(767451399110)(247924648384137); 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)(20161123560025)(20161123555025)(20161123564025)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:CY4PR12MB1144; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:CY4PR12MB1144; X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtDWTRQUjEyTUIxMTQ0OzQ6VlhidE1NVHJ5MnlVWFd1NHpYR1NPR0Jwc3pE?= =?utf-8?B?VTRydW9YZHQ0SjNqNEx0byt6ckJzTThHbi9DaVgrV1RJbllKREdBUDhSdmNl?= =?utf-8?B?TVpaNFZuTk5yZHNaV0J6czUzaEQrYUtReTlNQmtCQ013eGJtaXRRZDR5T0hh?= =?utf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C9ERkVNeG4zcVc0R2xs?= =?utf-8?B?WUkxMXRoMGRybnkydTljUlhtekQzc0pNS0FsWU5KaVo4b215cXV0RUZVWldG?= =?utf-8?B?UGhBMXFzQWRrbFhYdDJwTkM4TmlaTG4wd085OGFhY2tudkJhY241TG1OaXFt?= =?utf-8?B?U0pKTVhSRWJKOGFLZW16cWdlWHp1NWdhQ2tqcXlCc2U1aTR3NVFvQi9jVWdW?= =?utf-8?B?MldGclg4dlBPOFJIeXRndTJWUHVrU2hjK0Y1MFUzK2VPNm9DZ2NBeWdiaXF5?= =?utf-8?B?VzhCOWxUajg2TXhKK1p2ajN4V05ibS8rQTMxN2wyTHNaYzlhTFRud29QNVBl?= =?utf-8?B?TDBuWEFsVGNqaFh6MnFiWWhGMHRqbUl1TGVTUVdjWGU0TzQ1WVlsU2F3NC9Y?= =?utf-8?B?QVhqMWhvelJPcFgyTGR6S3BkdEhMWUZGOHp0VmpxVEdFcHQxSmlrNGREVWJT?= =?utf-8?B?SWx4MmVIY1dZVDkreGpycVNOTjFOYmFhSi9oekdIYS9WUjZCelNPL3VuRkZL?= =?utf-8?B?TDQ5UnR2MWp1RUM4Sm5FRUEzQ3Uxd0xkRmROdHhQckJoYlY1clNYcFUvMlZ2?= =?utf-8?B?M2RDOXpUQkdJeFFWVU9YeWpLL1dRTVVCUmYvU3FlV0RvRlVOSDhBRzQ3QkVV?= =?utf-8?B?azhZb0RtbktvYTBwOS9oYzNkMXFXbEpBdmluSDBQZVI5SlhqdWFjMVAybUdw?= =?utf-8?Q?VzIQxgtJ6QNsx0MRsqqDVXVVcQ7HHzZNPl7E=3D?= X-Forefront-PRVS: 0351D213B3 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(39840400002)(39450400003)(39850400002)(39860400002)(39400400002)(39410400002)(53416004)(9686003)(42186005)(6506006)(103116003)(47776003)(66066001)(38730400002)(50466002)(33646002)(6116002)(1076002)(83506001)(54906002)(72206003)(81166006)(230700001)(55016002)(3846002)(2950100002)(6666003)(54356999)(23676002)(2906002)(8676002)(4001350100001)(4326008)(76176999)(25786009)(97746001)(50986999)(305945005)(478600001)(110136004)(7416002)(7406005)(189998001)(53936002)(5660300001)(7736002)(86362001)(921003)(1121003); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR12MB1144; H:tlendack-t1.amdoffice.net; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtDWTRQUjEyTUIxMTQ0OzIzOjRJcXVzSE1odzBqcitNY01hanZJb0FIK0o3?= =?utf-8?B?d1R4YUczcDNqR1NwSnVwWU5qQ0pKKzVyVGx0OWVpRjdrT0NuL0JKS1BVQ01N?= =?utf-8?B?N2xQb0dsZGs1RGpQajZaVHZMdDUveDlINnl1dzE1NTlhVmpOMmphZ0lWdFNC?= =?utf-8?B?dW9DMDJuZ0w1OG51U3U0Z0JCelBQS1E4WEF1M2QzS2VzdUNiZlNSMllRSHN3?= =?utf-8?B?WTh5RGt5SDcyVVJkTFJpMlFEY0Fuem1PbDRMQ3ZkZ3hGbnFFR1NRMjhNRUZ3?= =?utf-8?B?NEU4V2xRZWloVnJsU1RJYlZLd2ZhbzIyc2ZsVElLYitmRUFPYUpJbFc5bFI5?= =?utf-8?B?b3JqanRBaUlOVUM2WXBSOG5rNWRDamQ4V2lHOThxL1NOcWJ5a0dCOFovbG5q?= =?utf-8?B?dzRTL1k5ZDhtczZzYlpXSDBBZGN0OGd1TVNCV0p3ZUNnRE1iK1RaZ3dzYUJC?= =?utf-8?B?V1BiVjRpK3Jvdll2dm44bUdyVWdtc0hyQTBZZXBkTml4RzFRUHh2NE0wNThq?= =?utf-8?B?TSt5YzBla0hkK1hvQ2RpaFYxRktxQXQybXlNN0o1dm00ZUxuVjVXTndHcE9E?= =?utf-8?B?RDc4SUxlUjh0UEUwSU5lVHpDdGFjcndQNit0QlVKajBhWllxVDFaNWx4Tk5h?= =?utf-8?B?M3dMc0tQUzlGOGlpK0s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9NATXwIeUPeA88A+JwyEfCAyYECK3aRawnEofCbUEcf/L5vZJs5FQHGqmtehepodaN7r/hIICqqHkptOSdnlhZ0t4XZ2YI2QnUBGBOUD25B3jRVSwrossmYWKf/rSyJab6fPFhSFOuQ7vfV94R67RD1143ZWHo5sOgquBYa/RYqOVnbWG9V1K4vR6BAxkOmvs7nngBiEFy46Qb1kNCfo= X-Microsoft-Exchange-Diagnostics: 1; CY4PR12MB1144; 20:OJx0V0GdO4F8N9ajPGGoW3vd3fWR+NuY9KFOlecE7WhbEp0w2RzR/9H0bF0EK/HXVLYUvgUUGw6EXmS70thddNA9J2uhDGXq+VTrXkcRBvJOtGrZKqTea+uikpYTPM8PkfEo4EQj5VuqLmlnLIyuoemsQIFEH1leJSN8c6syTQchYMbgwUBIPw6BQymG1DSJJZSYqVvDQlBaJfk5sdGzaQJO3HOXTNlu2aCEu4WEYkWjOY3pC5bnJM9tWDxq4DtS X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Jun 2017 15:00:08.6819 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR12MB1144 Cc: Brijesh Singh <brijesh.singh@amd.com>, Toshimitsu Kani <toshi.kani@hpe.com>, "Michael S. Tsirkin" <mst@redhat.com>, Matt Fleming <matt@codeblueprint.co.uk>, Alexander Potapenko <glider@google.com>, "H. Peter Anvin" <hpa@zytor.com>, Boris Ostrovsky <boris.ostrovsky@oracle.com>, Jonathan Corbet <corbet@lwn.net>, Joerg Roedel <joro@8bytes.org>, Radim =?utf-8?b?S3LEjW3DocWZ?= <rkrcmar@redhat.com>, Larry Woodman <lwoodman@redhat.com>, Ingo Molnar <mingo@redhat.com>, Andrey Ryabinin <aryabinin@virtuozzo.com>, Dave Young <dyoung@redhat.com>, Rik van Riel <riel@redhat.com>, Arnd Bergmann <arnd@arndb.de>, Borislav Petkov <bp@alien8.de>, Andy Lutomirski <luto@kernel.org>, Thomas Gleixner <tglx@linutronix.de>, Dmitry Vyukov <dvyukov@google.com>, Juergen Gross <jgross@suse.com>, Paolo Bonzini <pbonzini@redhat.com> Subject: [Xen-devel] [PATCH v8 22/38] x86/mm: Add support for changing the memory encryption attribute X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion <xen-devel.lists.xen.org> List-Unsubscribe: <https://lists.xen.org/cgi-bin/mailman/options/xen-devel>, <mailto:xen-devel-request@lists.xen.org?subject=unsubscribe> List-Post: <mailto:xen-devel@lists.xen.org> List-Help: <mailto:xen-devel-request@lists.xen.org?subject=help> List-Subscribe: <https://lists.xen.org/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xen.org?subject=subscribe> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" <xen-devel-bounces@lists.xen.org> X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/arch/x86/include/asm/set_memory.h b/arch/x86/include/asm/set_memory.h index eaec6c3..cd71273 100644 --- a/arch/x86/include/asm/set_memory.h +++ b/arch/x86/include/asm/set_memory.h @@ -11,6 +11,7 @@ * Executability : eXeutable, NoteXecutable * Read/Write : ReadOnly, ReadWrite * Presence : NotPresent + * Encryption : Encrypted, Decrypted * * Within a category, the attributes are mutually exclusive. * @@ -42,6 +43,8 @@ int set_memory_wb(unsigned long addr, int numpages); int set_memory_np(unsigned long addr, int numpages); int set_memory_4k(unsigned long addr, int numpages); +int set_memory_encrypted(unsigned long addr, int numpages); +int set_memory_decrypted(unsigned long addr, int numpages); int set_memory_array_uc(unsigned long *addr, int addrinarray); int set_memory_array_wc(unsigned long *addr, int addrinarray); diff --git a/arch/x86/mm/pageattr.c b/arch/x86/mm/pageattr.c index e7d3866..d9e09fb 100644 --- a/arch/x86/mm/pageattr.c +++ b/arch/x86/mm/pageattr.c @@ -1769,6 +1769,68 @@ int set_memory_4k(unsigned long addr, int numpages) __pgprot(0), 1, 0, NULL); } +static int __set_memory_enc_dec(unsigned long addr, int numpages, bool enc) +{ + struct cpa_data cpa; + unsigned long start; + int ret; + + /* Nothing to do if the SME is not active */ + if (!sme_active()) + return 0; + + /* Should not be working on unaligned addresses */ + if (WARN_ONCE(addr & ~PAGE_MASK, "misaligned address: %#lx\n", addr)) + addr &= PAGE_MASK; + + start = addr; + + memset(&cpa, 0, sizeof(cpa)); + cpa.vaddr = &addr; + cpa.numpages = numpages; + cpa.mask_set = enc ? __pgprot(_PAGE_ENC) : __pgprot(0); + cpa.mask_clr = enc ? __pgprot(0) : __pgprot(_PAGE_ENC); + cpa.pgd = init_mm.pgd; + + /* Must avoid aliasing mappings in the highmem code */ + kmap_flush_unused(); + vm_unmap_aliases(); + + /* + * Before changing the encryption attribute, we need to flush caches. + */ + if (static_cpu_has(X86_FEATURE_CLFLUSH)) + cpa_flush_range(start, numpages, 1); + else + cpa_flush_all(1); + + ret = __change_page_attr_set_clr(&cpa, 1); + + /* + * After changing the encryption attribute, we need to flush TLBs + * again in case any speculative TLB caching occurred (but no need + * to flush caches again). We could just use cpa_flush_all(), but + * in case TLB flushing gets optimized in the cpa_flush_range() + * path use the same logic as above. + */ + if (static_cpu_has(X86_FEATURE_CLFLUSH)) + cpa_flush_range(start, numpages, 0); + else + cpa_flush_all(0); + + return ret; +} + +int set_memory_encrypted(unsigned long addr, int numpages) +{ + return __set_memory_enc_dec(addr, numpages, true); +} + +int set_memory_decrypted(unsigned long addr, int numpages) +{ + return __set_memory_enc_dec(addr, numpages, false); +} + int set_pages_uc(struct page *page, int numpages) { unsigned long addr = (unsigned long)page_address(page);