Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752480AbdGYO7j (ORCPT ); Tue, 25 Jul 2017 10:59:39 -0400 Received: from mail-by2nam01on0050.outbound.protection.outlook.com ([104.47.34.50]:21454 "EHLO NAM01-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752404AbdGYO7f (ORCPT ); Tue, 25 Jul 2017 10:59:35 -0400 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=brijesh.singh@amd.com; Cc: brijesh.singh@amd.com, linux-kernel@vger.kernel.org, x86@kernel.org, linux-efi@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, kvm@vger.kernel.org, Thomas Gleixner , Ingo Molnar , "H . Peter Anvin" , Andy Lutomirski , Tony Luck , Piotr Luc , Tom Lendacky , Fenghua Yu , Lu Baolu , Reza Arbab , David Howells , Matt Fleming , "Kirill A . Shutemov" , Laura Abbott , Ard Biesheuvel , Andrew Morton , Eric Biederman , Benjamin Herrenschmidt , Paul Mackerras , Konrad Rzeszutek Wilk , Jonathan Corbet , Dave Airlie , Kees Cook , Paolo Bonzini , =?UTF-8?B?UmFkaW0gS3LEjW3DocWZ?= , Arnd Bergmann , Tejun Heo , Christoph Lameter Subject: Re: [RFC Part1 PATCH v3 01/17] Documentation/x86: Add AMD Secure Encrypted Virtualization (SEV) descrption To: Borislav Petkov References: <20170724190757.11278-1-brijesh.singh@amd.com> <20170724190757.11278-2-brijesh.singh@amd.com> <20170725054522.GA21822@nazgul.tnic> From: Brijesh Singh Message-ID: <6273a2f0-151a-e8c2-6f4c-09d397446128@amd.com> Date: Tue, 25 Jul 2017 09:59:21 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <20170725054522.GA21822@nazgul.tnic> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [165.204.77.1] X-ClientProxiedBy: MWHPR22CA0069.namprd22.prod.outlook.com (10.171.142.31) To CY1PR12MB0149.namprd12.prod.outlook.com (10.161.173.19) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 01fc4749-73d1-4495-5fdf-08d4d36dc0fc X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(300000503095)(300135400095)(48565401081)(201703131423075)(201703031133081)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095);SRVR:CY1PR12MB0149; X-Microsoft-Exchange-Diagnostics: 1;CY1PR12MB0149;3:osakiqk1Dvhszfn45x2YtoF/N1VesROSspPJu8y3+2Wp7L23BiliX/l7lsZV7w+oMz3kKC8uH/61QiVaqyoLWEcfON/6DZe96oZ42Y9p5Gn06JclyGUskbr7Z8JPkyJorf5YrMRABaMN0C7AYkolsw1JwaelNv++gdrvYrUZYU1dOFWIfCpqi9DS/ce+J4aO/agCIA2REvy8wUF36PZXPc8DLpX9Uho6fvOLf3xCZV0Okiyf4UxsoGw5SfvQWXsfRh5m45jHcwEZ6WoJVIe8xTIPcxjNZREjJwluedljj04naKtcJ05e84HKuu8XMGbEU7UsCiWJ0B9kTpo++c/LSYyGW87vGXTVOcpV++leYJDvqQOvtWDD9iX4/vkryXocx9yxZP2Bqjmh3NcsoOt2qZtTFEhRRzxlqQF+WCH+DwCrHP5gsMBULPbr6e520szxYeV4NtRBFLiFvlyY6yuhYETyza7bqRommKXRDYRhEkj41NHITYLsM2JUk9n0snmKev9eKZoiPIPt69jBxfbReRB0qjvATphEHKxLWkj3m5CPSdUg2wrIH+8JBeoGH6BZOBPxfHHHzJ8XSzGDxAqqHBqOd/e+sjLgY3cURehnw/V30bj+h20ekB5v6x6zMaZsc2p5jX92HCv5h11gjA1Cj+FNuYF0Q3nwUhL7esNPGG9wO534pRAXvXT8F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g6u8KycCf2HiMMffe1zumcLMERruhtuqKe32cJKdXJKNbDx30D8PsJFE8brknEuS7bFeX82ax/0cDUAgrly6K2W8ysgT90oGgg4SWWNfuCSJNeOT+YStPkf5eIBCl9IagXLLumUVCU54gm+giVhf00Ea3Iy57VECIGX6XWALnWLhRNTSqT2XUs5VlpaLm54pcOGQQTCZhUNNEfJNC+1+9Mmbiju7rmH/r8UR7i4K++pl6v X-Exchange-Antispam-Report-Test: UriScan:(20558992708506)(192374486261705)(767451399110)(17755550239193); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(5005006)(8121501046)(10201501046)(3002001)(93006095)(93001095)(100000703101)(100105400095)(6055026)(6041248)(20161123560025)(20161123562025)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123555025)(20161123564025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:CY1PR12MB0149;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:CY1PR12MB0149; X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtDWTFQUjEyTUIwMTQ5OzQ6SDAxMjVDTHhNVGtOYVFHTXQ5RkFqNW5uK2Fz?= =?utf-8?B?aHQ5SlBkWTdOK0djTkJORWtVeHdPNEdqWll2OVNMMmNBSW15L1I0OUR0amRj?= =?utf-8?B?VzhVNjVkOGJMc2dFbU1QNnJEd3IvcTJBN2VGQlNpL3VWbXpnOTM0QTlZekNB?= =?utf-8?B?ZVdGMmdBTmM0eEY3dnVSVTY5SWx6eDVKZ2ZlRVpjNUUzS1lKb092bHVZNVcy?= =?utf-8?B?bzJPN1RzaUMzdENnWFZOSHBMSnY3bWxpbkEwOVpnZ3BJTkhnN1JpY1g4alRX?= =?utf-8?B?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1WkQyRzdXcHZ4M1I4?= =?utf-8?B?aDNteFBNdUlFRnIydWZseHFJK1pzK2xab2krOGRLYStjakJqV1ViZVNMM2hl?= =?utf-8?B?MnR0ZHhiR05mVzUxbGVRaGZhYTZNVUNzb0lJZXM5WmNNeEl5S2h4Mk5TMFV4?= =?utf-8?B?OHVwOHVFNmc3MWZ6dk9GYmF5T2Q3WXozekl2Q0IzVHFVbUdJRHI0Rk1uN1BE?= =?utf-8?B?QlN6aVZwUWFpTlRvOU1mUHgyc3VXVnkvS1lSZEJSYnRIR2Fsc2N4eTQ2bnN6?= =?utf-8?B?QUUzQkxNaUcrY3JrL1p2MHpLQzgzZnRDcmxhbFZrSXE1VW5zS2Y0czM0U3Zp?= =?utf-8?B?TjZ1S29QVTJ0MGxHRHJQODYvaE5TQ1EreFhMTW53THV2dkdNVUtWcURsR1p6?= =?utf-8?B?MFhIMlMvV3hOZ0tWSmNFV3pMOHZLa2NHTkpIdGVPNlBtck5FbmphWTBReWVl?= =?utf-8?B?WXRkQ3IvT2xUaUZFWk95YWUxY2lML1RCWVV2a3p5cUp3emF1UE5VRGp3bkww?= =?utf-8?B?akc5RnBTakZDbWhaaEtaQVE3dE1zN1gzZU9KUGlUSXE4aEVoSllzY0xoT3hj?= =?utf-8?Q?HWS2Rqg1bwB+yOn3gDYPE3batY3lPIvherJE=3D?= X-Forefront-PRVS: 03793408BA X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(7370300001)(4630300001)(6009001)(6049001)(39840400002)(39450400003)(39410400002)(39850400002)(39400400002)(39860400002)(189002)(199003)(377454003)(24454002)(81156014)(3846002)(81166006)(6116002)(6486002)(8676002)(25786009)(4326008)(50986999)(101416001)(76176999)(54356999)(2906002)(7350300001)(305945005)(90366009)(65826007)(105586002)(2950100002)(6916009)(7736002)(478600001)(31686004)(68736007)(5660300001)(33646002)(47776003)(42186005)(54906002)(6666003)(110136004)(38730400002)(6246003)(230700001)(7406005)(106356001)(7416002)(53936002)(83506001)(64126003)(189998001)(86362001)(36756003)(97736004)(77096006)(50466002)(65806001)(66066001)(53546010)(23676002)(65956001)(31696002)(4001350100001)(229853002)(129583001);DIR:OUT;SFP:1101;SCL:1;SRVR:CY1PR12MB0149;H:[10.236.136.62];FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtDWTFQUjEyTUIwMTQ5OzIzOkxmTTZHUG1aZXJwUjZrRXBiZUV5RnRLdVNT?= =?utf-8?B?eGRnK1VBT2xCcjlobnptM01oUTNsbEdOWFlxc0ZrRUFOOXNsMVFWNmVmUy9L?= =?utf-8?B?SUlpOXNTc245bG1jOVdFc1RnZHpQSGNrRG5qNmtjVUxmc3NKcjBmbFMzT0hx?= =?utf-8?B?ZjlYNmloRGJxdDExTldGenF1ZlJVQVlmQ3QrWm1JOWRCcVppZHFsSVpSVjd1?= =?utf-8?B?VFQ1UlhlMG9PT3lET1pBcVR0REVjTG5CUGJUUHp5S3JGclJhU2tNZ0pVU1VW?= =?utf-8?B?QVdza0luOHFOQjBMeFQ0elpnMzkvMDFYaURqVFpVVVUzMzltYlVJNmFyRDRE?= =?utf-8?B?V2FLemVOYjM4bmkvbFZtTGNXY21qaEh3NFlIQzZhMjVtaEF3Vkd6ZmY2TWFk?= =?utf-8?B?aTlmYnU1RThqWkY3a3ZuQjlDdm0vdnRqU3g4N2tWVDkxOGtJWUxWbEVvRGJt?= =?utf-8?B?eitDSFR3dncxT3paTk80K0U5MHUwcEZ5VjdNU09WQkgxVnBRMXpyTkNRNmlr?= =?utf-8?B?elUzWGJYQWlqZXlnZ3kzc2ZRMUdFekVWQkZ2MHdSVFFFbnFHUTZBRmRYblpv?= =?utf-8?B?L2x2V2JSSWEvYUZYd1ZUVmtuODcxcFVWMVFDdlJhMEhMRXdtd2lrTGdjWjBz?= =?utf-8?B?dWE0K2F6SzQwNUNyR1NNQXVFYXNweWhyK2t0YlF4Q2Zva3Q4bXVZQi80VnYr?=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BSU0tKNUQrcHNTaGZyRzBjdUs2UWdHN05vZTJPQkZo?= =?utf-8?B?OU9xN1ZYaTVWcG1VRlJWUUJSbDdnak5ubmN0T0lnOFE1eVFmRHR3aWxFdXYw?= =?utf-8?B?NFYreFV3a2FqdkdIYmxNdEZVZ2kzbkRud3BISWoxZGE5UWgrQlFHN0FiRlpE?= =?utf-8?B?cXg0RFdaZTdOd3h2S090WEhOdmhOVmtjaUVoMHhtdytCbk13VEdDNWI1UFVC?= =?utf-8?B?d1hKdlE1TEMxNUZ0WnoraWpTOHlPRVVoVjQvbnZJekNEV29GbWxkdUdxRVRt?= =?utf-8?Q?QCJKftu?= X-Microsoft-Exchange-Diagnostics: 1;CY1PR12MB0149;5:W26gvOQaJrCeORGlwpzs1MhIbXh52EkSvtUMlpyu31UuGBOa6fmYTmOAxZuJsrfyINO+XAp+uzuY7KgL4RHdNl0zFku6DfpFYqpWMvZ0bZdcstHUYQRMB4hgm6z/Ur88RIpLs1fjAYmcQzIDOEIAPUEtgSl+E1Msa8i5ImMyidG5OdewTh3ewNYkWJxqZs4WanxmxgsGdQYo8J0HVSLglKebAVDBLteFLUOJHl36t9ODDiuoGot6wGqAimCANe+FuuXA1a5J/rplKJBcEq3Xy3LhWcx2aFPWBcba5UWDXMwt/xOSULWNfeXmIk/uHdR5jh9aNrBjawlpfMDOky6Mbp9apwRA7Oq8R9SA8EYXKpdTHmM03nxtmEawPKNrdranOCUD790s6awUSJr5Vnaom/Y6RkyJWeJqp4DJ+5KQsLymS+if6mLBPO5Y/rcsRVKKhxRxsR0PTjdak8zR1ASLL2mpdn5YY/PcoAlDUrznPB1eRsrnWZDxwiTfcBBCqbte;24:29KyZDwAE3RHzB/NZJYFCGHhyEuHhoyjbUPbOPMd87v0OUdik23uEWfaxO556U6295gjS6so7vhB2SEk9uYhur8fQyCAqmHd0d1jWYc3aa0= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;CY1PR12M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DFK3mSnQWAWlS64b63ij X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Jul 2017 14:59:27.1401 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR12MB0149 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 4456 Lines: 114 On 07/25/2017 12:45 AM, Borislav Petkov wrote: > On Mon, Jul 24, 2017 at 02:07:41PM -0500, Brijesh Singh wrote: > > Subject: Re: [RFC Part1 PATCH v3 01/17] Documentation/x86: Add AMD Secure Encrypted Virtualization (SEV) descrption > ^^^^^^^^^^ > > Please introduce a spellchecker into your workflow. > >> Update amd-memory-encryption document describing the AMD Secure Encrypted > > "Update the AMD memory encryption document... > > The patch has the proper URL already. > >> Virtualization (SEV) feature. >> >> Signed-off-by: Brijesh Singh >> --- >> Documentation/x86/amd-memory-encryption.txt | 29 ++++++++++++++++++++++++++--- >> 1 file changed, 26 insertions(+), 3 deletions(-) >> >> diff --git a/Documentation/x86/amd-memory-encryption.txt b/Documentation/x86/amd-memory-encryption.txt >> index f512ab7..747df07 100644 >> --- a/Documentation/x86/amd-memory-encryption.txt >> +++ b/Documentation/x86/amd-memory-encryption.txt >> @@ -1,4 +1,5 @@ >> -Secure Memory Encryption (SME) is a feature found on AMD processors. >> +Secure Memory Encryption (SME) and Secure Encrypted Virtualization (SEV) are >> +features found on AMD processors. >> >> SME provides the ability to mark individual pages of memory as encrypted using >> the standard x86 page tables. A page that is marked encrypted will be >> @@ -6,6 +7,12 @@ automatically decrypted when read from DRAM and encrypted when written to >> DRAM. SME can therefore be used to protect the contents of DRAM from physical >> attacks on the system. >> >> +SEV enables running encrypted virtual machine (VMs) in which the code and data > > machines > >> +of the virtual machine are secured so that decrypted version is available only > > ... of the guest VM ... ... so that a decrypted ... > >> +within the VM itself. SEV guest VMs have concept of private and shared memory. > > have *the* concept - you need to use > definite and indefinite articles in your > text. > >> +Private memory is encrypted with the guest-specific key, while shared memory >> +may be encrypted with hypervisor key. > > And here you explain that the hypervisor key is the same key which we > use in SME. So that people can make the connection. > >> + >> A page is encrypted when a page table entry has the encryption bit set (see >> below on how to determine its position). The encryption bit can also be >> specified in the cr3 register, allowing the PGD table to be encrypted. Each >> @@ -19,11 +26,20 @@ so that the PGD is encrypted, but not set the encryption bit in the PGD entry >> for a PUD which results in the PUD pointed to by that entry to not be >> encrypted. >> >> -Support for SME can be determined through the CPUID instruction. The CPUID >> -function 0x8000001f reports information related to SME: >> +When SEV is enabled, certain type of memory (namely insruction pages and guest > > When SEV is enabled, instruction pages and guest page tables are ... > >> +page tables) are always treated as private. Due to security reasons all DMA > > security reasons?? > >> +operations inside the guest must be performed on shared memory. Since the >> +memory encryption bit is only controllable by the guest OS when it is operating > > ... is controlled ... > >> +in 64-bit or 32-bit PAE mode, in all other modes the SEV hardware forces memory > > ... forces the memory ... > >> +encryption bit to 1. >> + >> +Support for SME and SEV can be determined through the CPUID instruction. The >> +CPUID function 0x8000001f reports information related to SME: >> >> 0x8000001f[eax]: >> Bit[0] indicates support for SME >> + 0x800001f[eax]: > > There's a 0 missing and you don't really need it as it is already above. > >> + Bit[1] indicates support for SEV >> 0x8000001f[ebx]: >> Bits[5:0] pagetable bit number used to activate memory >> encryption >> @@ -39,6 +55,13 @@ determine if SME is enabled and/or to enable memory encryption: >> Bit[23] 0 = memory encryption features are disabled >> 1 = memory encryption features are enabled >> >> +If SEV is supported, MSR 0xc0010131 (MSR_F17H_SEV) can be used to determine if > > If this MSR is going to be part of the architecture - and I really think > it is - then call it MSR_AMD64_SEV. > Thanks Boris, I'll update the doc per your feedbacks. And will rename the MSR to MSR_AMD64_SEV. -Brijesh