From patchwork Tue Jun 27 14:56:49 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Lendacky X-Patchwork-Id: 9812113 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 3BDC26020A for ; Tue, 27 Jun 2017 14:59:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2EBD827F97 for ; Tue, 27 Jun 2017 14:59:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 223E6286AA; Tue, 27 Jun 2017 14:59:16 +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 97A7727F97 for ; Tue, 27 Jun 2017 14:59:15 +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 1dPrvL-0002bq-1J; Tue, 27 Jun 2017 14:57:03 +0000 Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dPrvJ-0002aw-88 for xen-devel@lists.xen.org; Tue, 27 Jun 2017 14:57:01 +0000 Received: from [85.158.137.68] by server-16.bemta-3.messagelabs.com id 30/E2-29088-C3272595; Tue, 27 Jun 2017 14:57:00 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA1VSa0hTYRjuO+ds5yiuvk3Nt5Fd1kVSZzO7gX9 KIuxHJSaRkuRZnbbBbpyzSolgKykxprFC27QYaoVZVJp5i2GRRaZRaQZpN8uiiz9SI8IfdY5n ln2/3ud9nvd5vhdehtSUKLUMV+jieDtr1SkjKfPKFXp9Op+da5jw0+vrvtdSG1BmV8ckkYXyF Ba70VFYoDCXjrTSzktxhf66QdqNfkWXokiGwsUkvLvSSEkA4dMIrr7wkRLQ4OMEDH3rQKUogl HiZBgYnSBKEcNE4xyYeJkitWNwkIDhCizpSTyqhNDjHqVEEHg+BGsukFJN4WVQV+ae6qtwJni afyikOgJvgbKPnVMajdj33hmnpToWL4D6vmKFrFfDQ/8HSsol8Qq41r5SapN4IbSMVk+NAl4E LT9/KqU/AD6B4Kyvg5A9l0Jg/Akti+Khq7eakuutMHghhCRPwEugu3ibPHuHgM8fyykZ9Cqho fo3kgcSoW/8W5gYpmEyOEaHgQI8vupw9i0KbvQ+COdZIeS+GSbKEFT23yNl0KOAib4mhQwaNe A/do4+hfSBGdsG/m0bmLFtEJGXUYLA8Qc5Xp+aYuQtJrPLxlqs+lRDWoqNEwTWxFlZo5Cy12F rROJZzBJfK7r0PeMumscQulhVA2TnamYbHfuKzKxg3sMfsHLCXZTAMLim6+gOLWV32DkdqG47 RZma50xc4X6LVTyzaSUwUboY1YBEqwQnaxMsJpnqRou1caofEoElwnzA/nds+kCfoXhttAqJf 9JEOTneZnH9z39BcQzSRauUDtElymJ3/XX/IgYTYjB1PksKdrH/KK0bXffUHqowdKbXenPvQ9 LToqp6em5+ZmVz2sMM784SnFye7xtT218Nb1+6KSniurA5Q+sdm1zdvPHRp5qmtZas1l05gZN V/W1vLtJm20jlHJvpcNZag+fNqnVPdr++P5Q3Mmjc8jR5DRQkvW//eib0fPkD99ajb9vUR94T kabzCX5eRwlmNjWR5AX2D3A/u3qbAwAA X-Env-Sender: Thomas.Lendacky@amd.com X-Msg-Ref: server-16.tower-31.messagelabs.com!1498575417!100017558!1 X-Originating-IP: [104.47.41.45] 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 21798 invoked from network); 27 Jun 2017 14:56:58 -0000 Received: from mail-dm3nam03on0045.outbound.protection.outlook.com (HELO NAM03-DM3-obe.outbound.protection.outlook.com) (104.47.41.45) by server-16.tower-31.messagelabs.com with AES256-SHA256 encrypted SMTP; 27 Jun 2017 14:56:58 -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=VHy+Y8BitjrRFTCAcadyvuQHCoypAH8lFEvxE9blC+c=; b=SWz8SFruA7328S/FODxxaMPnr1t1GAUxSKlskr6CbwwuL13IK01S1a2zHiaNMzgaaREfMolhBbRjBmVzpDJW2/ip24YB1kumFaNMoLcsyMbKjXru0FeNC2XUXKeAZMnNMC2BDqJOib3C/pGuUTzMDcZOkqS96pGQP4zRSiYYAnw= Received: from tlendack-t1.amdoffice.net (165.204.77.1) by DM5PR12MB1148.namprd12.prod.outlook.com (10.168.236.143) 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 14:56:52 +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 09:56:49 -0500 Message-ID: <20170627145649.15908.62309.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: BN6PR03CA0028.namprd03.prod.outlook.com (10.175.124.14) To DM5PR12MB1148.namprd12.prod.outlook.com (10.168.236.143) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 36bac573-6a6f-40a9-5a38-08d4bd6cc07b 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:DM5PR12MB1148; X-Microsoft-Exchange-Diagnostics: 1; DM5PR12MB1148; 3:i3J2IUeY4OjuYKNJY1nSZaFf1f/po6nFGLN5Ks8XMZAUjyS2UHxxZ7HpKoiml9U7wcJUknyB7K2EnJ0E6Tc4YA5q4IOE4zVdnX+4l04o4F620VPn3IHAfC9QCEQG2eBbY58cJXCX72FBipDxlXxxMEFpg4AiXJSBbdkNT6cqgxt+9PrU2uIRmvo7Cb6SIskniqweR4gaWvFpGJKonDyX+l676TRGXua7pghWre7exRWMK7SOMwc0Qy6ck9PIDFxqOnRMBzm6xMNMwRBGZ0g0xZrIy7dRTy6IXY8QAkkTv8PfIbEKw54OU3bNgwfE7BjG2/rWFFOCBKs2hG4Z7sxUv9Pufwm4zUrAeJY0z3+j56QP8Svh1RsRwQH1Uo7+qL+XwO7lIGs02FDkRCM4eo2jM68yrua5vn+nn+7YKYc/MqGFzuicVrQs2kh9cJLKdHOzlxxZeRhVqDAArtuV+CFj+Uz5b4DKdwmbvExaiKpRE2nX+wrSgYtV4SRXMtREbYs3LJwtLFcwVupLvQ56O0k3Eyh7nohzKtf0LOvLwCH2+QzbShr+m51EUGy7U/UEi5lRq8uMCHBasH2lFlzIG5MJ7nqAbM/qi1Hl27xwJBMT5CqtiLXJqJQyat3UaJj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AG2firPid/DRmfxzXN8W3DT77NDAymevYr5WjbPq0F18enFAa3AOj/JplvXcFFcQkZTLV3g+4F/ZM5MP4Yd63s4bWTuh77Ukf7koT10O9L2G4x/FIPfzVpu9pRyUMzzUYuZ0SP03i5oqc2rqUB25sdBN7GX73USZ07DI4xCi2y/uvEgj60sUDbvkhvDZNfwzVao/8Rrf0S1q9yNeCdmZEzfCbwFVVqCw/bcUwlB22FnjR22PHi66XLL8sYHxsVU+WZq3rohV6xLPpqnoz/ X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(125551606395959)(133145235818549)(236129657087228)(767451399110)(167848164394848)(211171220733660); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(5005006)(8121501046)(100000703101)(100105400095)(93006095)(93001095)(3002001)(10201501046)(6055026)(6041248)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123560025)(20161123558100)(20161123562025)(20161123555025)(20161123564025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:DM5PR12MB1148; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:DM5PR12MB1148; X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtETTVQUjEyTUIxMTQ4OzQ6MVlmdU9kazFORTExS3Bac0VHNUJYY0tXVHR6?= =?utf-8?B?RVBFazZRemVLa3hzL29ybUxNY0NCTU8rZStzbHZpdjVUZ0hKQkx2dVE0NWZs?= =?utf-8?B?RmVPcGI0VG15QVdRNGpzazlGWVd3Rmo4ZUlzZW54WWVRU21TaWRMdFQ1b3hK?= =?utf-8?B?R1pZSGNEeXBhZWxZRDUxdDVGSC9BUGdFdE5Ya3k2ejJ0SUVoUFAraVhuZlFL?= =?utf-8?B?TmxZZUdHZmpiYXFIc2p3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1JIQWdyZ3dJZHZSTVg5b1V2alJQcFQ2dUZUTmFlNmFzbklXS0d2N3cyNEpl?= =?utf-8?B?MWs3R29yMzc2Um9CdnNBeVFKQ2MzandVQjRCaTlPT0U0cnVnMkpwZFRDaUlQ?= =?utf-8?B?dWRuSlN4bzY5YlF6VGYxbVJHSkNEL05id1BzV0o4Q2hJdGdIY01HQ0FhUWMr?= =?utf-8?B?VklxcGVSdGNycVV0SmNEMTdtdUZpV0MyZVc5bm1ENUFxSStFOVVoRnRXWFVG?= =?utf-8?B?MDVYdjVaWFVBcmtVNHRTNzJjcFE1VVZUQU1WRjdSckw1MUtqdUprbkQ5bUw3?= =?utf-8?B?Z1ZZcGN4MXIzb0NYNUZTZXRoZ2NUZ2NWbkxaSFBsWTBObFFwYjlpcXZlTGEz?= =?utf-8?B?WC9YOFVYc0wydEtmUjJxNy8vV0orR2pPMlJwcFFTTmxVSC9LT0hoOWJGdUlu?= =?utf-8?B?VkZqYlp5Y2VKMkRseU9WY1RqMnkwL3paTHNWNGFjdXV2eVluOUpYZXlNbnJw?= =?utf-8?B?NmN5czNoMXJIMmYyUkxFTFNlTEY1b3hDM2tDOEFZUmZiUW5mSFZoZ2U5VkUr?= =?utf-8?B?OVcwcDJDK2VWV25yLzZEUFZKdVNScXIvcllCWlVkdktPdVZZYWVCOGhhd1Er?= =?utf-8?B?Wmw3YTgrK0Q3cHZEaUNVMnoxTHorR3ZSb3hPVHNTanhQYldUdFpYQk5raUFC?= =?utf-8?B?amJRTEQwK2dmVXhPMENZTERKdXFVb2Z3MDlJZGVjVjZxNklnZXNnV1BJQXlQ?= =?utf-8?Q?AeAYy7FhOw=3D?= X-Forefront-PRVS: 0351D213B3 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(39840400002)(39860400002)(39410400002)(39450400003)(39400400002)(39850400002)(2950100002)(478600001)(6666003)(2906002)(6116002)(3846002)(53936002)(9686003)(7406005)(55016002)(83506001)(50466002)(110136004)(1076002)(305945005)(72206003)(230700001)(33646002)(7416002)(54906002)(54356999)(76176999)(50986999)(97746001)(4326008)(189998001)(7736002)(5660300001)(4001350100001)(103116003)(86362001)(8676002)(42186005)(23676002)(53416004)(25786009)(47776003)(81166006)(66066001)(6506006)(38730400002)(921003)(1121003); DIR:OUT; SFP:1101; SCL:1; SRVR:DM5PR12MB1148; H:tlendack-t1.amdoffice.net; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtETTVQUjEyTUIxMTQ4OzIzOk5oL1ZtR0xpeE1TU1FaYjdiT2pZejNLTHd6?= =?utf-8?B?UkdpZGVXSTRqU2pNSCthYjVCcENsclhTOHJUTHpab3c4a3NNMDhOY0tnTFhC?= =?utf-8?B?VnRNL2lia3liVUErYnh5bEJEcWhNbXhxNUU3TWJEYnJOTTh1NHZUU2tZdWo3?= =?utf-8?B?T3ZRbTBONWIwV09wNnlxaXYxQkVNUnpwb2NwcmdVbFhoQStTQXVqSzV5bkU5?= =?utf-8?B?Skx4dElyK3N3alNxT1grU3d5TWxkZlpDQzlJSnM3Y2ZjWkQvNmY3aXNWSnBM?= =?utf-8?B?S0locW9LN2ZNcEVyVU5HdmtlR1YvcG9VV1orRFphanhpeDROdzZoWGhTa3RS?= =?utf-8?B?RDhaMmh6WUsyTXR0a2hua0VMU294em1xZXVPWVJyRlFrNzdMSUpHVjNpRU9M?= =?utf-8?B?dWRqcHlXNmtSMmdhMFlvTkVZNC8xcEQ3ZkNUTUtPcGptYTlYc3QxV2UxM2VI?= =?utf-8?B?djJBR1Baa2JQeE9tc3FpOUdaOVNIRzBzMHB6b3N2OWxWbFZKUlMvbEpCRTFn?= =?utf-8?B?MmRTSWlVN2d5eWVBeUhvVk42cFRiOTNTTkl6eUU0TzVwYU1OZnVzaWpSNDVw?= =?utf-8?B?dEFnSWlBb2tFWjhNYkpIVU9vZ28vMVFlb1BzOUU4bTZWWFFKYmhCcjlkb2pP?= =?utf-8?B?VFFSSj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5tGglzImyACoznSgJmzdbbK8i3n0rYZPCVwygjfe4bAR24Kyge6K0DgrRk/L2dmk4v/yqFGOq2YvttW+5CbQNBOzIKglS17vv+bqWbD4ufyXfa/FbA2nz4dBHiFvsi9cMEe9kbPr/ElOGlNycDZnoajs+d9y+c/ZfM1ksw6+O5NvLQzvRmtbRdWTlo3VPs246y/ZDgVU4gUtgfLM= X-Microsoft-Exchange-Diagnostics: 1; DM5PR12MB1148; 20:i/WZi4ygnCASUL4SiD+MnPfC/RjUFTgOqCUtmPAK6IGM8uHnMWn6LQEmxs9xX9HYNsS4VTcPv0qXgft8aFm/yfvl67iCNMnHQeULgyD1UUXDq9juLkf2RYW46tP6tQ0yLLMmpwT5N7Ju58x+mERaj8xH2DpHRKU5vHiaJCycUFHfOJaRSmKMVpJkSHpI83nuAb7z8dsVg83HcNxzUnLrHYLiqqHRr0KqCO6DVNGrlDEAMoWQ4qSyQgJ6G6MiXgbh X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Jun 2017 14:56:52.1696 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR12MB1148 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 04/38] x86/CPU/AMD: Add the Secure Memory Encryption CPU feature 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 Update the CPU features to include identifying and reporting on the Secure Memory Encryption (SME) feature. SME is identified by CPUID 0x8000001f, but requires BIOS support to enable it (set bit 23 of MSR_K8_SYSCFG). Only show the SME feature as available if reported by CPUID and enabled by BIOS. Reviewed-by: Borislav Petkov Signed-off-by: Tom Lendacky --- arch/x86/include/asm/cpufeatures.h | 1 + arch/x86/include/asm/msr-index.h | 2 ++ arch/x86/kernel/cpu/amd.c | 13 +++++++++++++ arch/x86/kernel/cpu/scattered.c | 1 + 4 files changed, 17 insertions(+) diff --git a/arch/x86/include/asm/cpufeatures.h b/arch/x86/include/asm/cpufeatures.h index 2701e5f..2b692df 100644 --- a/arch/x86/include/asm/cpufeatures.h +++ b/arch/x86/include/asm/cpufeatures.h @@ -196,6 +196,7 @@ #define X86_FEATURE_HW_PSTATE ( 7*32+ 8) /* AMD HW-PState */ #define X86_FEATURE_PROC_FEEDBACK ( 7*32+ 9) /* AMD ProcFeedbackInterface */ +#define X86_FEATURE_SME ( 7*32+10) /* AMD Secure Memory Encryption */ #define X86_FEATURE_INTEL_PPIN ( 7*32+14) /* Intel Processor Inventory Number */ #define X86_FEATURE_INTEL_PT ( 7*32+15) /* Intel Processor Trace */ diff --git a/arch/x86/include/asm/msr-index.h b/arch/x86/include/asm/msr-index.h index 18b1623..460ac01 100644 --- a/arch/x86/include/asm/msr-index.h +++ b/arch/x86/include/asm/msr-index.h @@ -352,6 +352,8 @@ #define MSR_K8_TOP_MEM1 0xc001001a #define MSR_K8_TOP_MEM2 0xc001001d #define MSR_K8_SYSCFG 0xc0010010 +#define MSR_K8_SYSCFG_MEM_ENCRYPT_BIT 23 +#define MSR_K8_SYSCFG_MEM_ENCRYPT BIT_ULL(MSR_K8_SYSCFG_MEM_ENCRYPT_BIT) #define MSR_K8_INT_PENDING_MSG 0xc0010055 /* C1E active bits in int pending message */ #define K8_INTP_C1E_ACTIVE_MASK 0x18000000 diff --git a/arch/x86/kernel/cpu/amd.c b/arch/x86/kernel/cpu/amd.c index bb5abe8..c47ceee 100644 --- a/arch/x86/kernel/cpu/amd.c +++ b/arch/x86/kernel/cpu/amd.c @@ -611,6 +611,19 @@ static void early_init_amd(struct cpuinfo_x86 *c) */ if (cpu_has_amd_erratum(c, amd_erratum_400)) 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) + */ + 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)) + clear_cpu_cap(c, X86_FEATURE_SME); + } } static void init_amd_k8(struct cpuinfo_x86 *c) diff --git a/arch/x86/kernel/cpu/scattered.c b/arch/x86/kernel/cpu/scattered.c index 23c2350..05459ad 100644 --- a/arch/x86/kernel/cpu/scattered.c +++ b/arch/x86/kernel/cpu/scattered.c @@ -31,6 +31,7 @@ struct cpuid_bit { { X86_FEATURE_HW_PSTATE, CPUID_EDX, 7, 0x80000007, 0 }, { X86_FEATURE_CPB, CPUID_EDX, 9, 0x80000007, 0 }, { X86_FEATURE_PROC_FEEDBACK, CPUID_EDX, 11, 0x80000007, 0 }, + { X86_FEATURE_SME, CPUID_EAX, 0, 0x8000001f, 0 }, { 0, 0, 0, 0, 0 } };