From patchwork Tue Jun 27 15:08:13 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Lendacky X-Patchwork-Id: 9812375 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 99F27603F2 for ; Tue, 27 Jun 2017 15:10:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 889F1286CC for ; Tue, 27 Jun 2017 15:10:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7CBFF286BC; Tue, 27 Jun 2017 15:10:43 +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 D8873286BE for ; Tue, 27 Jun 2017 15:10:42 +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 1dPs6O-0007XZ-P8; Tue, 27 Jun 2017 15:08:28 +0000 Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dPs6M-0007WH-LS for xen-devel@lists.xen.org; Tue, 27 Jun 2017 15:08:26 +0000 Received: from [85.158.139.211] by server-7.bemta-5.messagelabs.com id 40/BC-02181-9E472595; Tue, 27 Jun 2017 15:08:25 +0000 X-Brightmail-Tracker: H4sIAAA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-5.tower-206.messagelabs.com!1498576103!100881125!1 X-Originating-IP: [104.47.41.55] 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 52441 invoked from network); 27 Jun 2017 15:08:24 -0000 Received: from mail-dm3nam03on0055.outbound.protection.outlook.com (HELO NAM03-DM3-obe.outbound.protection.outlook.com) (104.47.41.55) by server-5.tower-206.messagelabs.com with AES256-SHA256 encrypted SMTP; 27 Jun 2017 15:08:24 -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=byiNHBwfy3pkvEs0RA+n5NF9w+tUBrd83LZfUq0lZvQ=; b=1HuhVF6Ok4Ka7InfJ2BwGDxZw2UHK4biK+T2ANIszFRdoaZEoIsoBDbpcE3IyvfinpBP6J5S/rVb1fu//TLcS3bwb8apv5FDyHCYflP9HuEaDV2eFG26HuzBq5cDREDo01CsuuRG9g86TUcwGVWlF/yEDWxvYv5Noc595ju1A74= Received: from tlendack-t1.amdoffice.net (165.204.77.1) by DM5PR12MB1146.namprd12.prod.outlook.com (10.168.236.141) 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:08:16 +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:08:13 -0500 Message-ID: <20170627150813.17428.17375.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: BN6PR03CA0040.namprd03.prod.outlook.com (10.175.124.26) To DM5PR12MB1146.namprd12.prod.outlook.com (10.168.236.141) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 1e1fc311-c902-44fb-0f93-08d4bd6e5833 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:DM5PR12MB1146; X-Microsoft-Exchange-Diagnostics: 1; DM5PR12MB1146; 3:lRRkj208g/sgtdCE8dMSO5o+a/tkeUnLSjXSRlAtcusrQYIQn2G3LyGnq5M1CfLyqfZNO4j8bG1i25MhO66zqxkQ393/aq/FAWuRQHiKfasGjDI6TSXp5VDV44ZfMb9ChU4VYIi3seg8tUfLwRWUyChmk6mh7XxCrlc369fKkYpYh4aNim9VsZn/5TSe9eU83Lvnj71nbJR35AisfIAaaHMaLmFDD4Jjnkfrp6hCDaYE7N6Kp75KdZIwrI+OQ9QAeJ6cD1IRlFYFL/a5Mh2kV4Xc/Nvv4r9kOqkPOmvQbcwzp6h/Ipy/d9rwBcZ23XyPLbUJTWyLYdiYQjSDWhUe/JD8qQ5dSrERXWkP3KkwJ4yIAIK485gAWZdY700VsoXkIQZ8vl31csij7cefOWLumcWVuUumhRDTsZx8MPL2IRNkmI9sURfOjNSs6Y2bT69Bf4wXxaZOT2YzRmHvPuKG3XoQl7ChwkwOKIGXYaZaIPYWuCNuMQ+fYYjrOd8zz2hKNXVVpLu3FiqygDHY8gPisKblQ1tm2voY+eCmlOea6AZMOUKkNMM5sTxYGAknj1awLnZuz6ylx87q1HpntwI+zvRa5e1dKPNqN74Cf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pVTQv73Dz83YqTMrMiQ8E0MAuHzyWxbHrAgB+XJsfDPJQc6bY7SHSosFL0bghSJlLy1eq9Qx1yJGVumdvNjkJD0paYUEOvXlWCtdruVElNAvrRU0L06IdmSXO3hwTReuN5QW+bY+4vZ5aCutmmZcJxebV8LouNsWKDBLKr7PUJURXmx1nP2rmV42dLOG0RCHaCSfUVFh8QTawxGiYEFt02dpMVzcZfenH/LSxWE/d7njIUAo8PDdLnqRpDzKD1TcXLnpkFV3FK+2cHwdUYDO1BO2+uHK9qownpWsFHZlfFGOC 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)(8121501046)(5005006)(3002001)(93006095)(93001095)(10201501046)(100000703101)(100105400095)(6055026)(6041248)(20161123562025)(20161123564025)(20161123560025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123555025)(20161123558100)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:DM5PR12MB1146; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:DM5PR12MB1146; X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtETTVQUjEyTUIxMTQ2OzQ6UG1oZ3VqdVlrVWpmYVVJR1lpZU55NDl5Q08v?= =?utf-8?B?YWtBWWV1UEl5ZkNEdk9jSWVRSFRpWk1kdnFCb3ZsY3E3TW5nb25mZDNlK3E0?= =?utf-8?B?N2JtN0FFYWFqWmJzM0pqMjJaemxhR2VSZW1PTTYvTE5EelgwbnFWdXU0dWpI?= =?utf-8?B?T25aMngxNjhJTDVYb1l0VTlnMGNZeHErSTlYdGh2bmNuYThtUm5qclhhb0NL?= =?utf-8?B?eUtzM2xWcDVTK1V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=?utf-8?B?RTI5V0pHMEQyRVp5QUE4MW94eFdRRFMzdWNLSWtnNG9aZXlmQk5jdW9wSWZk?= =?utf-8?B?VHhBemlWYVM0cmQ5N2xPOW9pZzhTaFFCdk1YQXhDejdSQXFxS0sxRDJpbmRu?= =?utf-8?B?eUUyc1MzaTF0YXR0aHM2Mmc1UjA5eWFuZmFNdUlkVzRtVmx5RGMvenozeEoy?= =?utf-8?B?NzgyaUJyWFJ2YUpoMHQ1Y1kzRWc5WTg0cGQrVmpSNXNDaUtHUUhCNjZ0UEsy?= =?utf-8?B?NmZ6dGhJc3Z2MlN5ZUlWMzk3SjBVVXg0bUd6UVVjbmlHWkFJcjJ2SmFCZ1d4?= =?utf-8?B?dysrYUtKN0J4SVc4V083dE1VbWkyWGcwOC9Fd01iUTZNMmZuTkJHUEJVem5q?= =?utf-8?B?YzZhY3hkYm5ERGNuZWdpY0kwaFIzWHQ1TWJLRUxCVGxOWWc5NTA1eTNZeDgz?= =?utf-8?B?VUtCaHRMYlA4STNqK1Q4akxScjZqMWRTUmdPSXVrbXdWSXZPRy9LZUVncU9U?= =?utf-8?B?Rk5hWUZpQlNmZlEvdjFlNjdUVm9aTVROY3lhc3ZnYlVscmxhM0ZIZURUY2N5?= =?utf-8?Q?GktaLmMPvq/lRptltI/XVrIY0gUCb8cho3tCo1?= X-Forefront-PRVS: 0351D213B3 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(39850400002)(39400400002)(39410400002)(39450400003)(39860400002)(39840400002)(53416004)(5660300001)(1076002)(2906002)(33646002)(8676002)(97746001)(81166006)(42186005)(50466002)(86362001)(7736002)(103116003)(230700001)(6116002)(3846002)(305945005)(7406005)(7416002)(53936002)(6666003)(54906002)(9686003)(38730400002)(6506006)(55016002)(23676002)(25786009)(110136004)(2950100002)(47776003)(66066001)(83506001)(189998001)(478600001)(72206003)(4326008)(4001350100001)(54356999)(50986999)(76176999)(921003)(1121003); DIR:OUT; SFP:1101; SCL:1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/spI4oGZEoHZS/yYQPBzsUe5GqzVMni11HE7cq1ego= X-Microsoft-Exchange-Diagnostics: 1; DM5PR12MB1146; 20:cyljVUY6VgxMNpbkxJJ78O+ogcqFCdmwW9bv63HZNO30kpyV8iwF/p97QNkwBMTedutWqJMHVjP2AbGwIIZW1Fdrmexz/vnIOddKSpcSKeouieIKUkVRyngNNq2WSHxrZN31n3TG7vXQfOJqgaV0glTBkQvc6LDC4c3vVIQIzGkfWsfkX5EkLryXlYKKaXxKQkNLWHdEKdpgqVfApFHhixoUXDHoFYLv6h7dRygT2vDA6zk2WQNNsGMnz/PLRVc1 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Jun 2017 15:08:16.2082 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR12MB1146 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 05/38] x86/CPU/AMD: Handle SME reduction in physical address size 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 When System Memory Encryption (SME) is enabled, the physical address space is reduced. Adjust the x86_phys_bits value to reflect this reduction. Reviewed-by: Borislav Petkov Signed-off-by: Tom Lendacky --- arch/x86/kernel/cpu/amd.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/arch/x86/kernel/cpu/amd.c b/arch/x86/kernel/cpu/amd.c index c47ceee..5bdcbd4 100644 --- a/arch/x86/kernel/cpu/amd.c +++ b/arch/x86/kernel/cpu/amd.c @@ -613,15 +613,19 @@ static void early_init_amd(struct cpuinfo_x86 *c) set_cpu_bug(c, X86_BUG_AMD_E400); /* - * BIOS support is required for SME. If BIOS has not enabled SME - * then don't advertise the feature (set in scattered.c) + * BIOS support is required for SME. If BIOS has enabld SME then + * adjust x86_phys_bits by the SME physical address space reduction + * value. If BIOS has not enabled SME then don't advertise the + * feature (set in scattered.c). */ if (cpu_has(c, X86_FEATURE_SME)) { u64 msr; /* Check if SME is enabled */ rdmsrl(MSR_K8_SYSCFG, msr); - if (!(msr & MSR_K8_SYSCFG_MEM_ENCRYPT)) + if (msr & MSR_K8_SYSCFG_MEM_ENCRYPT) + c->x86_phys_bits -= (cpuid_ebx(0x8000001f) >> 6) & 0x3f; + else clear_cpu_cap(c, X86_FEATURE_SME); } }