Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752351AbdGYO7M (ORCPT ); Tue, 25 Jul 2017 10:59:12 -0400 Received: from mail-by2nam01on0064.outbound.protection.outlook.com ([104.47.34.64]:60980 "EHLO NAM01-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751993AbdGYO7J (ORCPT ); Tue, 25 Jul 2017 10:59:09 -0400 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Thomas.Lendacky@amd.com; Subject: Re: [RFC Part1 PATCH v3 02/17] x86/CPU/AMD: Add the Secure Encrypted Virtualization CPU feature To: Borislav Petkov Cc: Brijesh Singh , 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 , 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 References: <20170724190757.11278-1-brijesh.singh@amd.com> <20170724190757.11278-3-brijesh.singh@amd.com> <20170725102657.GD21822@nazgul.tnic> <7236d267-ebcb-8b45-b8d3-5955903e395f@amd.com> <20170725143615.GA26029@nazgul.tnic> From: Tom Lendacky Message-ID: <47ccc32e-e113-48e0-d2e0-2f23b37cc452@amd.com> Date: Tue, 25 Jul 2017 09:58:54 -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: <20170725143615.GA26029@nazgul.tnic> 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: MWHPR1301CA0017.namprd13.prod.outlook.com (10.174.164.158) To DM5PR12MB1147.namprd12.prod.outlook.com (10.168.236.142) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: fa0ea934-ab49-4924-9f4c-08d4d36db07d 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:DM5PR12MB1147; X-Microsoft-Exchange-Diagnostics: 1;DM5PR12MB1147;3:UMyENTFXi4okU5q4uw/mJQmToKGshpO/03Gob+cYaao6rtPSy3Iy4j14sJJ/1UtOMd0MAmRDlb2+NnLTp/9OZrOOiV8CvAOB4MESbbseifa/GziYt7feJD/ch5I7aAQxxdhI3j/qvuu8ETXGdpn7Bo1mqsjwxMDV5ifg5yTl789jHfkvAprWfzl3rTiG7K7DJ8x9o4L8Dti+aahT3DEeQFVmnknkGZXR3dWakF9LuCIAPEzOd/OZFo8BJ+aDGBvLh+NG4umqfyztIXyqKMixImr6KuYUwxvIRUTzhCD/mD6Wgi1aa+qJ8EHybkOWDfAfqcd0U5SVUF7nTu1QgqIY9wlzxWsHlJ0X/LJ15amKchJqzesvNMm6mW+VjHlZfJZNceRyIram4CkJxtJl2FBDbQ2Tw5Il++dQDDrX65KKOLbKjjrsBjocdHqsC9YlEBtYKcLjNFf7evAPp3ZIrKeEmCohvWjMiqbDoe3EWonVk336u/+8Z21FMPbNAYGbZyrlh37SA79FB3zPD5qmj6JGrfSwAZkq5WavoH5D0h7eOrfDrdtf86uf51oEso2IlTB8oMonNsjtgunPC6pClvbQ0ZSh+az9MvFGMU9aLsIfKvYsKSe+t4WywvM/x9UR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Ntqr8npvo06W9IaHv8pf8+DEQgCmdiE6/wJk6TjhlNU72JNNPbKdyv2i2+YLrFA1FJ8ZQdqZBhwgDMssKMDUYn0n2lzhcvvE7K2Hu6+6dW9RbyhDSUU78tUu0N4d3gM8ibF+PJsr1zitCP/eWRUgtwum5BA6pI+gqqykGGnaCo9lwtA65vzt5goQuwsyjQklIIyfMLXaDLYAt0B8rOpgPj6HAYxPv/HAf+jvRIx3FwlY8MhyrHLcMSeP6RP85dFBdGFm/i0Ow7GWURhOnY3hsL8nGdCv8R2D8 X-Exchange-Antispam-Report-Test: UriScan:; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(100000703101)(100105400095)(93006095)(93001095)(10201501046)(3002001)(6055026)(6041248)(20161123562025)(20161123560025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123564025)(20161123555025)(20161123558100)(6072148)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:DM5PR12MB1147;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:DM5PR12MB1147; X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtETTVQUjEyTUIxMTQ3OzQ6Y0pyVEZqQmFvWlpTY2Nya1pkWkluTzZYNkQ2?= =?utf-8?B?WkhYdTdSMmRBbEtBN3J3a2dLbmtoYmZXblRFM09CT25CRzBib0dsMXFXdThj?= =?utf-8?B?Tm0vUGd2REJYZVA3R2p0Nk5aeW9nM3F0ZFRrTG5EZURpK2R6VnREbDJzci9W?= =?utf-8?B?cVk1ZkxOYnpVa2RQRjRNVnNnOE9takY2ZXB5UFVCWVNvMEdKeDBUd3diQVlh?= =?utf-8?B?cDRHbWFQMzVMSWgxNmpRU2FycDBHMGRuQzlHS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UTdaRURVSXQ3VUZlQk1XL292Tlc2RG1Vb1RlZk5I?= =?utf-8?B?UlczaXh6dmx1TS85WWtoeExYSWtOOCtYUGJOajU4V1JMa2h1NXZTVTVMdElt?= =?utf-8?B?L3VFazFFajVCa3BYVFNDR0QyVWZVZnBuQ3BKd2xEQll3MXJHZThPemROQkZk?= =?utf-8?B?OUhyL3R6Y3ZrbVNrK1pock9iYTZGOEQwQ3g1dUwzbHducGZNdVJlYVZQVG1k?= =?utf-8?B?STRHS0NoNldOM0VrWEVyUmd0Si9lWWdidkRKbDdTNjFLditPUkpjRWNVa0o5?= =?utf-8?B?N1U0Q3YxNThPNUkvb3M3dEdSNGtkZFhiY0I4NWV4cENhYVN3YUFXSUFySEhO?= =?utf-8?B?OWEzUE5CdzQ3cmJlTXNwMFcvSEVIcnhVeDlxVU5QQmlhbXlpQXQwTVNpaDNM?= =?utf-8?B?WlB2aWtMZ3VadktaWTM3emdlY1IzZz09?= X-Forefront-PRVS: 03793408BA X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(7370300001)(4630300001)(6049001)(6009001)(39450400003)(39860400002)(39850400002)(39410400002)(39400400002)(39840400002)(24454002)(199003)(377454003)(189002)(110136004)(23676002)(229853002)(65826007)(7416002)(7736002)(305945005)(50466002)(86362001)(6916009)(8676002)(31696002)(2950100002)(47776003)(230700001)(33646002)(7406005)(5660300001)(97736004)(68736007)(189998001)(65806001)(4001350100001)(65956001)(66066001)(83506001)(93886004)(478600001)(72206003)(6666003)(36756003)(42186005)(53546010)(4326008)(6486002)(90366009)(77096006)(7350300001)(76176999)(106356001)(54906002)(54356999)(81166006)(6246003)(38730400002)(25786009)(101416001)(53936002)(3846002)(31686004)(64126003)(50986999)(6116002)(81156014)(2906002)(3260700006)(105586002);DIR:OUT;SFP:1101;SCL:1;SRVR:DM5PR12MB1147;H:[10.236.64.250];FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?utf-8?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jBVWVNMV3A3d2dQNjc0NVY2MzlTUHJ1?= =?utf-8?B?SHVJSTBBMHR4M1NoZWNkNkVldzUzS1VJdk1iejN0cEM5Y3RPbHBGaWJGYTFi?= =?utf-8?B?MmVheHBldm5vSEhwWGFMa0dVRWpwUWRLd08vR2lYNzFYd2pFUXpxN1d6UU9R?= =?utf-8?Q?lZ5BzXA?= X-Microsoft-Exchange-Diagnostics: 1;DM5PR12MB1147;5:FFDps4fmbcmgvhoUDcnavAJyanDerTNEr9JXHXMp4Lj6mz3iH06ZvgVzH9MY7dZg52Nst9lSXPhFHzQEGmp+wJMjWf6JUAjFf6xRRZdEgWmXMRhz8p8K5Bd3gGENSpLE/geDQvwipYW1arLnGZmx3L5B6QaCPqH2WpTynf5sHhZy0imk1o8dHKOeE8WRB2IQEVWFURzqqfNlbZuf/AW054i5Wc2r8L0yzicnL9SWxLSAt5Vu3J7ozbjEum8u0kT911+vzKal0kzClQ5K6J3bd1WggSpfdwJiznRP166ul56YpdIQm0S6jhB/URUviaXu2SK7ERDWW16Esf5yAFMPbnsDVHUp4J6uuXzOCmdIDXOOMBUhHs/FZtamjlhoabMZxwT7iBtnQFDdm5YFzbGj0QyVICzDVWX4GcTpoKnf1ljy41bhPtw+NfIswwczrT8N9d1SHT8vVBVGaCVpgkc7DMO0GlCffjCByejHwvVE/HkapM4cQKq26Xflp9S5Ds/t;24:5tolPIaPndOBFlbs4Z6LDmitHRCJUGVhQoi3tHNvxoi9fFqFm9vz+P9kZxVLvCqyMUHuBBkV3MB8ct/jgkYMW1EGD+kicCuQGF8CJaY/U90= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;DM5PR12MB1147;7:xiNrB8HEeHornSlnGSTHWh8L+9i74fY0qbQijUJDiYR9+JsGkYzndRXlHa89w8uHSo1rau12GmTZKTwhHyhk4wBQRGcE4tNAfpH7AKPmi8VTDi5miG9/2eKzeDgyRvsjnZRxV54dgJgLml55KlhCmATnwbnHHBdXCd9UVBsUUHy20PX90WI1y/Tjd5lBwmYysV51F7dl207UECHFDg4W/6u697PyrIZpuOAQm6EjZjrd+oKcTOL5c0H7KYY7rvJ+ELlfCVlC39Nx8PpOxFWtkTzibIOK7u/jY5JzcQ/r9SkKi3llar6O6ieLyA2mrG0rxdi/CXql0Cp5/x6PE7iyc5NbetnsxV0v1uv1qDRllVz5gXPwfZGyJBnxHqJdGHXYh9WiNbSTnMYXd6UlkxXYu+9pOUKylQ9tzzj6ur0h+yhIplP4FYrSG7xFbKSma+CxngJsTq23j70LjT6Enf7bE4IJOxXoetb8p1y9Y642Dwe+fHTes2snvOsU/0FY8k6JKz4X8j1I+6sB5EemnuIE6VAXoGQ/0U6nftcx0bYvS5LX4GX+VuAOgMxaMDxQwksqIxqs6kyHrpUl8AWw4E8VdNC7RQ6Emh6hIe9hH7qDs3/pshUh1NMY8/7bL9qM3DdHdUI2cGOKOAuEtnRbH3/qaDv6Jqj18ylWBcsMRf2a24pkXPRF4iiy368oaT/iM+sN2BAwwNFo0fKbUTTwUBw8X2srLjthzhxwmZG/X7pDwn8UCUb1pXwy3ZuNg7pbr5S4VBXHmImaOx0HsreoU2WchKbtgi8bb7yF/cvLv9iSa5A= X-Microsoft-Exchange-Diagnostics: 1;DM5PR12MB1147;20:+0jeHdT3pSFsTvdArXBT9od+YOxXV0et/qNJanvzOTvC91ea3Xf9XA4rY+yr6lk02hj+22q/Q8WWSriz2R2uZI6YctG8YSBiV7S48TWFPkNx/Eq3KliRASytCyM3C0OWlTOqKdx0ljrW5PMUoHr3h5b21I30XJu/hhAQGB7+rEOlAyfK+2uYTeq4QPh4RONTwhbV6y/1SiN1iJAD/I/ALRJgV8hJOXnRQjTzOBKPqPS3Ii2L4xr1QdlWkLa1Byzz X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Jul 2017 14:58:59.2938 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR12MB1147 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 786 Lines: 24 On 7/25/2017 9:36 AM, Borislav Petkov wrote: > On Tue, Jul 25, 2017 at 09:29:40AM -0500, Tom Lendacky wrote: >> Yup, we can do something like that. I believe the only change that >> would be needed to your patch would be to move the IS_ENABLED() check >> to after the physical address space reduction check. > > Yeah, I wasn't sure about that. The logic is that if BIOS has enabled > SME and thus reduction is in place, we need to update x86_phys_bits on > 32-bit regardless, right? > > But, come to think of it, that reduction won't have any effect since we > have 32-bit addresses and the reduction is above 32-bits, right? And > thus it is moot. True, but it is more about being accurate and making sure the value is correct where ever it may be used. Thanks, Tom > > Or? >