Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754877AbdGJSE2 (ORCPT ); Mon, 10 Jul 2017 14:04:28 -0400 Received: from mail-dm3nam03on0043.outbound.protection.outlook.com ([104.47.41.43]:30205 "EHLO NAM03-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754594AbdGJSEX (ORCPT ); Mon, 10 Jul 2017 14:04:23 -0400 Authentication-Results: redhat.com; dkim=none (message not signed) header.d=none;redhat.com; dmarc=none action=none header.from=amd.com; Subject: Re: [PATCH v9 00/38] x86: Secure Memory Encryption (AMD) To: Ingo Molnar Cc: 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, Brijesh Singh , Toshimitsu Kani , =?UTF-8?B?UmFkaW0gS3LEjW3DocWZ?= , Matt Fleming , Alexander Potapenko , "H. Peter Anvin" , Larry Woodman , Jonathan Corbet , Joerg Roedel , "Michael S. Tsirkin" , Ingo Molnar , Andrey Ryabinin , Dave Young , Rik van Riel , Arnd Bergmann , Konrad Rzeszutek Wilk , Borislav Petkov , Andy Lutomirski , Boris Ostrovsky , Dmitry Vyukov , Juergen Gross , Thomas Gleixner , Paolo Bonzini References: <20170707133804.29711.1616.stgit@tlendack-t1.amdoffice.net> <20170708092426.prf7xmmnv6xvdqx4@gmail.com> From: Tom Lendacky Message-ID: Date: Mon, 10 Jul 2017 13:04:11 -0500 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <20170708092426.prf7xmmnv6xvdqx4@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [165.204.78.1] X-ClientProxiedBy: DM5PR1101CA0018.namprd11.prod.outlook.com (10.174.246.28) To MWHPR12MB1152.namprd12.prod.outlook.com (10.169.204.16) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 2edb20e0-e3d4-4362-6f99-08d4c7be14a1 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)(300000506095)(300135500095);SRVR:MWHPR12MB1152; X-Microsoft-Exchange-Diagnostics: 1;MWHPR12MB1152;3:AvpR3IgCuLtIHD0zHfvrU13627LL9RgCdCIRrp/erqsGXViVDJTuldpLaROEb1HkvIkFsLc3q0SJJ4n/6ATY9gbt4SvjINUR0SAbFkOPHTh+DVP8Mc4dVWB/hj7oGFbskNBnsxNG0iXHAxtdCf84ur35IgNKL8NnkR49Cs/esYrVi3Eoo1WvUla+RVM2jVPtF+EA4e8Ba7bCUNbSfu6vV4IrJeEn6w4756Du5/5S9dOtuLqCU6evun9zZGPfKTC9cA7jtQDkpBruLzEswmYXwLGXC8g3EvqBLCD9TFnxCekNXsSuDpgQ2Krpp61nnmwbmw+t15oUBIZ/9bjpg+4VkpBQOxtYCsqpY40qa9LaJMUrGLfYQOcQ9YN4Hg+rGYolE6rxKBXhrl+1B/+oGaxJ1GtQQBZoQjA6ybctBVNysUkUKXoSHsqN8kOpB4KqAip9G2w1T7jLBOb34nKwgvko4i21HGIrgMiLYH5ZCoX5LfGsHa3hsg/CX3aXk/ff5MLEjbXA1w4CpXKJMDzZnZzjq8VLa5Oy4otiUxudzsZmdPZVA/Nn1E5zGcohEnGsEZssoLU0ISbdtS5St7YgBlKQ7t8exzFDlBDCKZaBqqHlXoXUiPthk2jocPs9VtJvRxGbh/JBK/0BuRIgoOG5IMA7TwYMTo2k4lsdz4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7U8UHaGkmgaw8rHLAqoDy6ml+neSt9D2jmHR32KzKnwDSYmPzvHsOBGF0EeOjDIjP/M642dqNkVNJMmTIBDYhLKZGFdlUyFVFPnSCmaqA//L1H/pQc/DblFIyGGtxrBi3LnqltbXhZUemyNQxQyItE5sB6cI/FHknVQzhcqZ4QD6nnXhiQEOAiiLozFf8cnd9mTOijNi/kLE8c8kJ4yttsU1OK/RuiioM91x X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(125551606395959)(133145235818549)(236129657087228)(767451399110)(148574349560750)(247924648384137); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(2017060910075)(5005006)(8121501046)(3002001)(100000703101)(100105400095)(10201501046)(93006095)(93001095)(6055026)(6041248)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(20161123564025)(20161123560025)(20161123558100)(20161123555025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:MWHPR12MB1152;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:MWHPR12MB1152; X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtNV0hQUjEyTUIxMTUyOzQ6V1dXUlFzMVpMT1RGakxBY0pVemlmN0Z4NWNT?= =?utf-8?B?UWo4TlpyK1FyZmptVjc4bStzVVdBZi9KMVE1M0Jia3h5MksrTUFOYzh0cjgx?= =?utf-8?B?OW5pQUVFOHFaREdoWFM1OWFwaWdhRHVTYmV6VHVuOUo5VXczMHZYRS9uQjJ5?= =?utf-8?B?N05LS0k5TDdUL1kxM2tWUXV5TmRuVkRYbzZ6ekkwandPNjB0UEtCa3kzZ1pB?= =?utf-8?B?S0xEeDMzMU1zZ0c2WnJ6QTNvekhoeXZLOHY4NUl4WkRsemNpWHVPNWt6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NNR3pnYmFhUzRS?= =?utf-8?B?SEdBZTFubm11OUszT2dham9MUlh2ZnkxRDdDZ1ZnM0orb0ozeXRSL2ZwTXl6?= =?utf-8?B?UmZOMUNyYUFnY0RiQlNlRUs2d2dtZ2R4ZFpWWVB1RUpZaUxCNjNZOS9yVm04?= =?utf-8?B?RS9tT1o0ZzJ6V0cydEVyM2pDcnM4MjlnaE5lUXNya01GMklGVmNONTQxekE2?= =?utf-8?B?clIyVVJaY2tvK2VuK3N4OHQ1UGdaMC9FVnVOOThuT1RyQUdTNm1EVmJKTHRG?= =?utf-8?B?RjFBMzVmbVpyaFdObk5RZFFwbCtVTysxUmNMWDJodW10ZU0rWXRYaGpyd042?= =?utf-8?B?eWM1RTd1MHdTb0FJNEFjSUZyQ0VQR1RrMDdJclllMjlFT3YxNGhRbmRVaDhT?= =?utf-8?B?T2doWFFiYnlZckp4RE9MRkR4VGhzOWdMUVJOekhMOU5Tb1VoMmI1T3BuQmJq?= =?utf-8?B?cFZqeDk5dEorUS9hNXZOKzgzdGRvb2g0bjJnMXRSVXBUMUgzb3R0eVJUdnFM?= =?utf-8?B?dllOb05QTytOVnEreHZWZy9kRzN0N2s1QUJKTHdQUzBIZlRHaXJzNkdmdDl6?= =?utf-8?B?NGZNWVkwVEtRVGd5Q3RSdk1oVXgzcXhtQU9ERWZMWTNpRTJhSklLRFNNck1u?= =?utf-8?B?WEZ3SklpbkQrNmdvTHRTWHRTS1FjbVBGaHFNN3NDSDJPNDNmUjU4L3JMTnF3?= =?utf-8?B?d1RzZkJJc3dRb3pFOExjVXp6OS9mNkFsSGVsWUxNMlQ0R0dSeVc0Y01maHMx?= =?utf-8?B?WXRvWXRTOVE9PQ==?= X-Forefront-PRVS: 03648EFF89 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(4630300001)(7370300001)(6049001)(6009001)(39400400002)(39860400002)(39410400002)(39850400002)(39450400003)(39840400002)(24454002)(377454003)(38730400002)(4326008)(2950100002)(478600001)(72206003)(189998001)(33646002)(31696002)(54906002)(50466002)(90366009)(110136004)(23676002)(6246003)(6666003)(6916009)(83506001)(53936002)(65956001)(7736002)(65806001)(66066001)(77096006)(6486002)(86362001)(7416002)(81166006)(8676002)(76176999)(50986999)(229853002)(47776003)(7406005)(230700001)(7350300001)(54356999)(2906002)(6116002)(5660300001)(3260700006)(42186005)(31686004)(36756003)(4001350100001)(305945005)(25786009)(3846002);DIR:OUT;SFP:1101;SCL:1;SRVR:MWHPR12MB1152;H:[10.236.64.250];FPR:;SPF:None;MLV:sfv;LANG:en; X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtNV0hQUjEyTUIxMTUyOzIzOnpWc2VGcTd1Sjhjd0tWa2JNQndmWS9EdFFs?= =?utf-8?B?WXk4czAxeTYwNi9wenNMaWpOeEpXYWk5cHNsN00zbmljaThzUHFNLy9sVHd0?= =?utf-8?B?bWZTSGJTdGxMVjZsSDc4N0E4cTBUZWxYK25wWVJsZDFDREd1Y0Y4enMxcEhm?= =?utf-8?B?SnFVMGg2Z2srYXAyZzJVQ3RJcWJ3ck96YXdvV3NZelBLN1pZQlhzUEIrckQx?= =?utf-8?B?RkVDNkF4ZVVmMlh6bEVKaTExQVlPZDQzaUZWODdFMno3a1RHdXh5dlNOTXFq?= =?utf-8?B?a0phVWdXaC8yU3FUS09PcC9MbFhmS2hkK2k0T04wdE5KK250RTdZQUpmR0hp?= =?utf-8?B?b1ZZYTJyTHVYeEtMbkdkUUxsV1NaSDg3VUd3UUc5MlhDUUE0cStkN1JlRCtm?= =?utf-8?B?RFF1WWlQMHF4RmNLUlltS2pEMlIvekYrdWROOG02enppd3U2V0V2RHg1OXgy?= =?utf-8?B?ZEZYc25XL1Nqc1RlbEN6bkFaTThUcnVLZXJsVXU2VHFqWjAveHZsNitENFZ3?= =?utf-8?B?OENiY0ZoU1hIaGhMS3E2dkhkVkRZV1IrRS9KMlowTlFETUJhZ1g3VWtnZHpt?= =?utf-8?B?WkRyekhYTDFhQmYzaFlMN2l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YVHNRUnpBTFMzaVY3QjRMSVE0czRkcnVW?= =?utf-8?B?TjhvRU8rM0h2c2hpeitYZW5lNVpjT1dGcWVTZ1BhTUg0Zzk5WGhwTjllL3o3?= =?utf-8?Q?Kw5aomv?= X-Microsoft-Exchange-Diagnostics: 1;MWHPR12MB1152;5:+lYh6pVvVRdYT0Op5k9/N2YlWb/S23Bi+rFHcFZDW0zFdiNcjOxOhp0Ru4CqiCAGxS7UIdFgNpVq/Tl3VM95tPhfSetkzTteFDFv6O4BkBjR6U5RM9IXQlz+bJJ76SMAASOEHHBeRKl+aF29nmBTn5bkkbtn3Qsgznyn/JSc89XAJxdKVmJkWjQseIivFSib8P6QAj4AfuV8UhzFfoZJ3aBPcLL19vWalncQxL0EL63Q/KurJV70MjdehGFg6Aa8marg5POmTykqJmBivQ3uJ6NLA4zYcWvI/7hFNmEetkvbrEtxKNsxXOftUP9qoIXrhDhDlzpv0uuN0Ol6PvXNdtAV2EDEXKBhUYo+MsUfafARDPDXmSI4aFEWDnxxX2lj0D5zjdXSGHE/B6QH5H37zRW3QM4dHoSTlpmDsunxnY3RxwXxhPY14egFDT8XMgn8MprgukFFyoUfYnXT0ZOrP2J6edxz12eRe+OjYaTxVKDLra0FOm4io598FPMHagS8;24:vGmelDQ6ybySKfQFYtd8JMm6gZBPbXzpMwliJxhyLRTNgTl5NbhhMUKHK2K5OYSy9pwRPTYv/ZGiPH/oTDgoyvjs2PfcBv57S9hKpOfiXBg= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;MWHPR12MB1152;7:G4mNLc40WZq4ieekpi1EmQ1GQmYkWKP1xaNLRKAWKi/3J72Uz1OLdsEcv76WxuOkY6LWWWtp+Dt1CKb3kk8SQzyqwxLFviTo8/yjeMBKQPTAA8hjAXoF31dnymOp27p/g+jryVSWIb7LVRtdgptQ8aChhsA129wBHVrDuVUHuun3ve3f22HPuujPovSTFQIZJk39FHItmLhIDmsKQ9eMIzeB1i69n8kM8MJoNMl5HznklkoUai3lJX4Ek+M724l8u1CDgaQFTrrcnE02GVxp1M95wfLjnTqTGTSCdt9FMreDCpSQAPzjyK6HG+2JaevGzUkHPGWjr8V1MJgBIM6CDZ+0aEShCzD5jiIJ5eMAFqde4OKPfF/eUB/nofCsZ0Ye11GjgC81ASoQ45qJ31hPe9M9YcIIK2P+4SUc656o1A5R14RA2T3VUiV8EFgZVWrBEam5izGPF5EtVUifYth4cN/SyuJrXjzzwtze3aGLM/000QmGCEC82tMTGRF7SKfZT7BWvLHjmpozEBBSpI1/TiEvgXquXf9cMy3Spw1cAdZEtoE3FIZt99WvHemJ/WoXnrgZQmKbwJj8u/DUwEut8QLGKajPE70gWpUlsy/yAL6kEO2fUb+IpR3gj5ek+nEzUZmUo0zBhyJCRzbk2IeKr1DIK7oBPtb2dh1RUVC+D5uyP+LV8krr87I6XH9sXzj9gTMixykgsQ7uKoCg/quz07Uma3jf2sgmCeMxnc2QT+Sw4roU+p/Gmmjs2b08ZMPx+aFIUyzjqMnJibpbS8I+SoShILJm2zQkz7whNCzYuHE= X-Microsoft-Exchange-Diagnostics: 1;MWHPR12MB1152;20:kMqo+xBnSX/W8dyzORnv9BuTgIj5YWjaapjGH51+irRDBzNZjcDjyTScs5hlErUm/kdUXNqkRIzb8EJuhKSSdFJH9vgXOhvEVPBB9QuuXxhM1cSoihyVVrPIME1+esIp6HtadbhKIbj6OHgdNrK5Y1e8uyKNM4f9Suy7RvubsIt/Tnry78+nllSNQ92yGuLnNEffREHr5fstJsaKCiB8UUGQLmRmyOyUUpiXjJIE6noWtjUCAxjlH6gvEx2bq5lK X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Jul 2017 18:04:14.3514 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR12MB1152 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1317 Lines: 42 On 7/8/2017 4:24 AM, Ingo Molnar wrote: > > * Tom Lendacky wrote: > >> This patch series provides support for AMD's new Secure Memory Encryption (SME) >> feature. > > I'm wondering, what's the typical performance hit to DRAM access latency when SME > is enabled? It's about an extra 10 cycles of DRAM latency when performing an encryption or decryption operation. > > On that same note, if the performance hit is noticeable I'd expect SME to not be > enabled in native kernels typically - but still it looks like a useful hardware In some internal testing we've seen about 1.5% or less reduction in performance. Of course it all depends on the workload: the number of memory accesses, cache friendliness, etc. > feature. Since it's controlled at the page table level, have you considered > allowing SME-activated vmas via mmap(), even on kernels that are otherwise not > using encrypted DRAM? That is definitely something to consider as an additional SME-related feature and something I can look into after this. Thanks, Tom > > One would think that putting encryption keys into such encrypted RAM regions would > generally improve robustness against various physical space attacks that want to > extract keys but don't have full control of the CPU. > > Thanks, > > Ingo >