From patchwork Fri Jun 16 18:50:34 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Lendacky X-Patchwork-Id: 9793211 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 C860360325 for ; Fri, 16 Jun 2017 18:53:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BBB952865B for ; Fri, 16 Jun 2017 18:53:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AF83328670; Fri, 16 Jun 2017 18:53:01 +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 0F3E82865B for ; Fri, 16 Jun 2017 18:53:00 +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 1dLwKU-0001Fg-Ch; Fri, 16 Jun 2017 18:50:46 +0000 Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dLwKT-0001F0-Hs for xen-devel@lists.xen.org; Fri, 16 Jun 2017 18:50:45 +0000 Received: from [85.158.137.68] by server-11.bemta-3.messagelabs.com id 57/E6-01732-48824495; Fri, 16 Jun 2017 18:50:44 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA1VSa0gUYRTt252dHc2Jz1XztqnVZtlrXaUQKYJ AC8VKMYmUoGZz2lnYh8xsYYGlruUq/Uil1xJktuULEQVZNQoRl8rMRKGg6CUKZqz2os3qRzPO mvb9Ot89555zL1xKqXGSWootdrC8jbHoyFCCM2xM1Ts3pecnPW9PSfV8uUPsQRm++78VOahAZ bYZ7cXHVVz1ZLe6qDG6+IbntboUzUVUo1CKwBVKaPr6ipA+CNchaHtZq6xGIZQGX1RAm98oYR Jvgxf+7woJR+A8+Dh9SSXhSFyvgPGrWGpWYj8JD4eHSIlQ4Biob7grGlFixAbwDOyUyjTOgKn ZVlIqh+BMuPCWkKMyoHIuMI+jcBw0j1WoZHk4PLkxQUhyJd4M7b0GqazEa8Drvzk/JeC14A0E SGkCwC4EA22dSPaMB/e3EbUsigXfs5uEjLdAQ+McKeMD0DP5fN4f8HoYrDgol0ug+bpbLXvWq KHpymgw4B4JVcNdwWQLlN/tCgZkQvu3D0HRkApeuQLB9h4Mj9/+DMbFQN+cK0h4VHCtrkxxGW 11L1nVvbiqe8mq9UjZghIElj/N8vrURCNvNnEOK2O26JOTtidaWUFgTKyFMQqJJ+zWTiRexDL xdaORyrR+tIpS6KLo2Ym0fM0Ko73wDMcI3DH+lIUV+lECReEGX/khLWGz21gd0OMJ6fmacJ41 scUnzRbxwhaUQIXpIunCeJGmhSLGKphNMjWI1mmj6QdSH5YI7pTtX9vCbY6iWG0EjcSZNGFFL G81O/7np1E0hXQRdK7kEma2Of65T4vBCjE4d2SPFOxgFiltKcpuzWs6UrK61mklyV/eEOfn3Y U9Yz59QY1mZn8VlWOIS8rqvTije5E6K1ytzgnEzVRl5106bJiKO9uX5TX92VHDlfXta40/6Go pmvCOvrGXrUzuW/353a2ju350dGV2nPRcf6r/ZLvtf2TKO3vtfWhrCPfz3N74qchPKVHnY6eX v9MRAsckb1HyAvMXthec3JYDAAA= X-Env-Sender: Thomas.Lendacky@amd.com X-Msg-Ref: server-16.tower-31.messagelabs.com!1497639042!98437746!1 X-Originating-IP: [104.47.38.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 26755 invoked from network); 16 Jun 2017 18:50:43 -0000 Received: from mail-bl2nam02on0056.outbound.protection.outlook.com (HELO NAM02-BL2-obe.outbound.protection.outlook.com) (104.47.38.56) by server-16.tower-31.messagelabs.com with AES256-SHA256 encrypted SMTP; 16 Jun 2017 18:50:43 -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=EczAe2J8q9zWuJGLPF32YZubKYDN6fzxZLhDsXRSaMbo0dvt1VEkpLSOLTG1rOFPnu9hodIRZUxzc4K18L0xiHOJK6jjb+rKAo5KcQLcp2MzrdOutfQCqqr108k+g+7GP1iVjxgfzXoL55LIow5yx60SfvY9vpBc2iuRLwFhv7c= Received: from tlendack-t1.amdoffice.net (165.204.77.1) by CY4PR12MB1141.namprd12.prod.outlook.com (10.168.163.149) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1157.12; Fri, 16 Jun 2017 18:50:37 +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:50:34 -0500 Message-ID: <20170616185033.18967.46040.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: BN6PR14CA0021.namprd14.prod.outlook.com (10.173.157.159) To CY4PR12MB1141.namprd12.prod.outlook.com (10.168.163.149) X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CY4PR12MB1141: X-MS-Office365-Filtering-Correlation-Id: 9938b737-b78c-4bac-17fd-08d4b4e895d2 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(48565401081)(201703131423075)(201703031133081); SRVR:CY4PR12MB1141; X-Microsoft-Exchange-Diagnostics: 1; CY4PR12MB1141; 3:hbT+R3+AgcIls383G2Sd2wTL1FR/tJ0lnG3Y6+wNEcDFI4Ed4jWzx+4Jl/AN1QFrlJcHYtsJ2e1Rfy634k7v1DDA/xy3X1XVkeEH5QzSe1fqhBAauUEaWx6OifReq2xiqZRFlM2/iP3S1+l97s5Wxe8JVJPmDeviaK9vsheBSbGg9sHp1kVdtJdGZ1Fry3ycUJ34k2zVRk3p7TnALKchJ1sbp4zOIFYEE9MSpORfoINfiTPKbA76GyvwHKzEhxVcJ8KdGp+TdS77KI29eJTbplztB4ajjm1NrAAJtovDfC/YuSShWfSq3s2xleJ5uxg1ebWcw+ADA33WkCg2J+iGbLyvGIKAQLxAcmnSL2TYeDg=; 25:/tD+VhcWCaCgfm8t6lf1oN6dLUMo/YKAYo8iN6jbXokE1Iek30/jjoCV/v+Pv8I25cgOPTs/TiajSHrAHlEtuFf/8Rg9ZFEMdaxwJz3M1mX7yRDetbhyV+7wLpybXV3oKwOth8dIBWoImM+cw3ihYKZLKgHwwfkFKDriEX8++V6vuDN3WkMdvw53p90nwdR+esFIS/h3vmjb99hItI3Ppyv3bEB/Q5ZIL4Iq7Y2K62x/8rCHoEn9xcFusP2Rqo2DNQvsFIAWh6WVMwhppXznu/PfwdTeSr8+mZe24sG/Pf7taYc91DTNvnLbVLId85FW8Exq2kwevaNYRygm9/ZSOFKGjE8gHh2d8HTjT+0IN/jcEDpCWDj6K1gOhecu16FLOQeLpN8e94CtCGs1g6oIVPNRatqs6uO/+SmTxWlo0+mqbHNdOer9G8JZ31BeHSAcgMOOaniJN2uPc7bgCU8k1OpQACSVVoEPgiB8DKehGbg= X-Microsoft-Exchange-Diagnostics: 1; CY4PR12MB1141; 31:oVFsBMA8gtEEPe+KLNDwSeHmZ1vt/L9TQGDRwLwXg0VscVwNOE5KLUoKtCBx9JBwQ9cu7OBo8n607lt7aVzOxq5cFUxLKadU92R4EVeFUdScTVxNYnLPxckOXnx89V5+UlJCcLAc5IR+a3+Ifp3qwd9LBf9uefxIUqnO5wTGHE1SmtRQa4aYZXhf/CboFbfY728nC0CuYyBzfOtxDqipFIE7J02I22LTdEdgnDd5/0o=; 20:5x3aFPSIYnghRzPBSa09rra/FFG2EpDmgqLS5a55m7aaJ3k00WKLPLAgOQApgep7N9FMyakG5DGPXZsWwB3ygnfPIDICLCKOrXDBNQRIsEx/fierJoiV+mIYa1gA6/oNpeYyUKTT+LYcqz5WsTwmI3j8qKkNnqEpJPvwI1lP8i3xLkwPxoGeHgp2sSHmMCo/WgqSY5PItDCjBrp8i17O+8OjcIc/v8mVKGcHU03HD9VVZe9N5KitX0/o0wbjZOI+9fLAcvm1A0ucOxOAuSMoUd8DDCQ9cbcKCRXxyw1q14oURKG/DjFwhw/OTTsKISR/RFXsvQMjA/OifMwQJAcT6KynWmSh1Lu2GtM3G2r1DGjT35DMqJ3aBBtJYTkbmosfZMvoR83bOYf0m5s1C7A+Y5ko4Iqg7rKGYaNsNZAaYCWr42+oUPerb0dLBwIH936R3yNkWjFgtjnnNPM6Q4g1WRRzBuTbR12T9BdeRaf1RoZ8OLzhsKjVcUHBDtcAxvSe X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(767451399110)(211171220733660); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(93006095)(93001095)(3002001)(10201501046)(100000703101)(100105400095)(6055026)(6041248)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(20161123562025)(20161123560025)(20161123564025)(20161123555025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:CY4PR12MB1141; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:CY4PR12MB1141; X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtDWTRQUjEyTUIxMTQxOzQ6TmFOZnpzSFp2S3kzVmFDTWFUR3NvTEg0SmdF?= =?utf-8?B?bFZLSVhmeXFEZEZPclkrWVlmdjFpRWJ6b3Rvc0w3RWd3WEE2WW16b0ZXN1Uz?= =?utf-8?B?VGN0WVVJR2x6SHQzU0NlUDhvMWNTZTlFNmZwbFIyZTkrNmdTRDZhYkpSZEhD?= =?utf-8?B?N2xMUDBiVW4zYjhmM3NEQmpKdDIrTWZqTmF6eWU3dEM2VlhOVUwzS0xEcHhv?= =?utf-8?B?bkhEMGs3dFVyQjJMWmRzQzVkblptcEtrU2swOVVEOUdhTzF0SUcvbHVkTWNT?= =?utf-8?B?ZkRUN0JSU2ptNVhVTnAzWklXcnpIbFJOUG00WjZCKzlmclhzSDY2b2xDRlBZ?= =?utf-8?B?UVBMTUduViticUVlcUxiN3NCbDYzSDM3Vis4Z3dNV3lwdS94TXp1SkIzSlds?= =?utf-8?B?bk0zMllSc0dZTlBrUDJVR09lOVRxQU0vbTgzdTZOQkF6UkJLa3RLOTVpN3JB?= =?utf-8?B?cVZ1T3FPdmNEYkwxaGthakF3Z1ZaMkdKcjVSSDVycHBGZlE1VG1XRnAvUTFs?= =?utf-8?B?UXpqT3h6enZHV3pxeG1RajE1TldCY1RNQjBsU1B4V2M5L28yeVU4cXIraXh1?= =?utf-8?B?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=?utf-8?B?UmZ2UmYyemN2ZFp3MnpGMkRMZlJPU0U5RTNDVlAxWEJBS09Ma3lNeHhxN0Yv?= =?utf-8?B?UmppRFh5czZGZ0MyMDhiVm4yaTlUbEMvY2EycWxYeGkrV2tkTHozYk41bDFj?= =?utf-8?B?dUdqVzdVVnhXbit6M1JyTllVTHNLOERBT1pzdVZMRmVIMUhzalRKdHc9PQ==?= X-Forefront-PRVS: 0340850FCD X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(39450400003)(39840400002)(39400400002)(39860400002)(39410400002)(39850400002)(54356999)(4001350100001)(50986999)(305945005)(86362001)(76176999)(8676002)(81166006)(6506006)(7736002)(4326008)(189998001)(83506001)(25786009)(5660300001)(1076002)(6666003)(230700001)(9686003)(3846002)(6116002)(47776003)(66066001)(2906002)(23676002)(33646002)(103116003)(2950100002)(7416002)(50466002)(54906002)(7406005)(110136004)(478600001)(38730400002)(55016002)(53416004)(72206003)(42186005)(53936002)(921003)(1121003); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR12MB1141; H:tlendack-t1.amdoffice.net; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtDWTRQUjEyTUIxMTQxOzIzOjJuTGRSc2M4OXZBbkZtYlhhM01WMUZaRmZh?= =?utf-8?B?UFIvbGNGYU1lcW15MmI3UTRTNGZiOUI0ZmJNOFh2REhQTVhwVi9EL0JwL2tH?= =?utf-8?B?dGczZGJqb3JNTC8rUW1ZN0VlZ1htMjZLZXVyODluUW4reUF4eG5JUXcyZTl1?= =?utf-8?B?UzRXSXZDVFNObm1JRjRYNFVsSzRVTjlkbnNqRXc1Q09nRHQ5VDRVS1o3bmx6?= =?utf-8?B?a2JYL1RySVp6RG11MjVUWlZONEN6SVFoWFFpNnZxd2g4Nzg1NkJDQVUxc0Mv?= =?utf-8?B?eWVqTXo0K2pjcFVuM3YvS0lQNE1EYlQ4Si84NlAwTGoyUn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kSm0xUmZRNGI0Z0w0T0FN?= =?utf-8?B?L0hnTjZRa3YrYzJWbytUVWlYNnI0Q3JYWEJQaEdlQUZkcTc4Y1V6dmZEVWQ4?= =?utf-8?Q?unquM3S?= X-Microsoft-Exchange-Diagnostics: 1; CY4PR12MB1141; 5:gj+8JsMcGwlXhWFENS8e4PFwV85OvyFBkk/r4gWQQuIsx/d12hl1byuNCmSqVESknlZnGMGe76xUnqoL3SWiRPi8kdczTxZ9iaEiAgPTyMI9Arse/Xx6HFeSR1juDrxTiAd3/Wi2bqxd1ziaz3UhmG+NqpVGIu3sc33BVOwZzc0e3KXSli9MrHUDkaznRaweE6xlf1dsA6Z/L62LVVNDbuz9Y4/iNTZMSaVIFl1o3+nDoa843Ku8mjstB7038Y5H6+6DA8UvH0L6URUaMaJEVU9Ta+WzDEAr9NodGkJ6yRgdb4KKXyLDYH0gJvs5UB6ZCxpH5xNETH4RzoISKdUJXij4WNUEZeTaeiZShKBtZjrHNzMVi2YkJ7u7JlRN8RrlajahCAn2LuiUOR0pSVg5d3WU/gp92YhpcBizmwSIhCZsCILv92m5WB/QpqbZBFFUighK/bQNrIb2LuotmkGrDQ8+bs5UrPebVDSVct2I+8FKWg4AipYFiLB8lCmEIcum; 24:oGwIJswNwP4rQDRC9s8AkyUDFvs8J1bnbaPY7BLQ/k9akSNhCALLR6/LNH0jyr5FK/Vti4oFRi9tIzKcyfwBCPfnf0U/gB3s6ItMRm77r78= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY4PR12MB1141; 7:m0QSNZ9Whrvqn5UN9NAl9vCH0YY3dMVMkuoFxtgv2ouJyvZy143GP4JomYo5DYhBw6jU61nrfzAZww2LQuO1+hlAZp9h63F6FBbsATxKwody6t2wCoKMAIfBjK6abOo/FlgNXkXY+kc7RomRaW5EfwgKoYI2Xqn/tlAiDcNhl08sieAPelNJIup9dfL5AuNDaynWLTFvvIO8Yiy0aUSVgLTnDwYpggQBmCiNnEp1V1NXmJVvEC7Kl0kIPS63o18SpA4WIrersCxI4/xlYsgA2K3CTQuHMOxmlqcBK3FWrxNWQ4FoK6QptSgHEg2g/Tb+LgxcAaCWVlXNifa//oDspOqHvgFrwx7aRgVs1b3/EbJgR7hYQqCfCsgGR17WXt0+EAGcjwbLz7uqlvswZvqfkK6VOWEKERxbjYzKf/+nyTNacnDvwz2nK7TXdcy5H0jcovEC4qxXoc5bsZoDL9Shtwm2+S+Iho7Vhd/jzMDtNQI76S1bsd0y7LJOQ3v5eVIBt6lJqWVNjfKgO/kd4NfOxrVhly4H975P8PaML3+CzJ+UJIF8vKp0PKlZ/XuZzyK9YQ2LyK+qIU7g3UY5+QcVcQpQSW1H/F317NBOcukNMbdysOGTNKo0lOkTeSoqSsvzGW+SmvW7sJwZpgiWFWtLIRRDt1So13JQOdSMzf8z3TWo5fBlSFzh/fy/uC/y3/7BOKML+w8C5oo16flCs67KVVxn9CUYa8OM+BTnrbEcLlm0UpCZnYpV2Nx1b1m2cdjBxMxAjGo5WB5RXPmWTA0dL4YL0t27Nn5jJz2zowEUkkU= X-Microsoft-Exchange-Diagnostics: 1; CY4PR12MB1141; 20:ajlJ9XQq9Ni2DWF8Mo+ul4g55/tc0lg4ZnsuD1AddRCJd1ZlYaITzlytdQC9VSDBBUCzrreO70yyLkqJlOkPUFYmPKdgMFFRXuT8AnQHW8JNx/3qGlv1hrC/NncXl8EDVVTovpSlJ3rdwKenv3tU7jIiOsz/i1zIyqDDxjwZwa+O+9fRp+fx3ALnULEPUkJ7sm0AaUWqpNUyHyNnbKc80RJwZ/PqhKDjofD/pTdtSOHBvM6un/J0kcRAvUF2ciAZ X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Jun 2017 18:50:37.1490 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR12MB1141 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 04/36] 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 } };