Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752606AbdGYP3w (ORCPT ); Tue, 25 Jul 2017 11:29:52 -0400 Received: from mail-bl2nam02on0064.outbound.protection.outlook.com ([104.47.38.64]:63488 "EHLO NAM02-BL2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752277AbdGYP3r (ORCPT ); Tue, 25 Jul 2017 11:29:47 -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> <47ccc32e-e113-48e0-d2e0-2f23b37cc452@amd.com> <20170725151301.GC26029@nazgul.tnic> From: Tom Lendacky Message-ID: Date: Tue, 25 Jul 2017 10:29:40 -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: <20170725151301.GC26029@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: DM3PR12CA0049.namprd12.prod.outlook.com (10.161.151.17) To BN6PR12MB1137.namprd12.prod.outlook.com (10.168.226.139) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: e5c63d34-d985-44e5-4e13-08d4d371faea 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:BN6PR12MB1137; X-Microsoft-Exchange-Diagnostics: 1;BN6PR12MB1137;3:VjdyLHeh3mq8WHalVf/8ox7/uXH4ElrGSI/2PaAJw3T8Xt2LU1tr+usml064QnuZFLrqCHSgnZdsE0pZjkb4usrN5FwFQSn2/ORQ7+GUWQAc3sgEzCh6iFbLNf4Jw+LQ9UGAVJts7sAqq5//jvK7qsfN5sxXnZ0Un1o7rXcuiIzLJ31NufluJpmgg7Si/qVxpnb2DkD/ZEFWk3uyqyATmDP1whMxqfnppZMY8jUJEH9uaSp8wtq0SBns10035jz/2F/dQtNcwa+l5FiNEW0LMC41s0avkh0C0D116U/GsslIcw2/6AsooaaWUnZ+Mgxi2AP5FJUmgoDZof5k6x+3WbWjf60TefLETrW0xtfVhZEzaLWvCfGt2ffzqlLRfxUGsEoAn6q2l13qJANY4IHOSAXUhwzBkBSDNqmiSVpkn5voAWfR7fwFOj39Ej/r/8h5rvKOaeqoP9du3926XSnW2Dn3aZz2KYf3cMc90fbUXjFfbuNwmqwn76y8a1diVirhUIfQRJekgl1rB0mT29qODGJyqYoo3OZZucAqzj75FwUzsb8T2+4cBaB8ZVCPJmDKJi/5AAEv4E09o8SnxPdaMll0zXI7VRiTk5nhtSq2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XOhnKFT1ptKXuXGSxvIXSZ0t92Q2B8hT9vObBHl8Zl8k0ZbH+SJQdcR78Wun4P9dPQ3G5KdmuI+t85IgT3tgSMGOrvJamgscXtHEZjIwrad4l/Rh3pES3aEDXJbe9NDvyNpeKL88BqrUqNYE6Q3nOdEIGZj8mDMCYZiTNo/f31Gfo8P5Njh8rW6ONt6GM1N4uYZhwXqmRN9wO4+TPwvjMDPJlWbzd2WUf7Nb7/nyVaB1Tt2p/bc6N2BgO1MefOPxqcc9N1j1P+G3UAOFFJxMARjHYD2QgeR2Cq8JwBPB+yBR/3GUPnE7UVA 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)(5005006)(8121501046)(3002001)(93006095)(93001095)(100000703101)(100105400095)(10201501046)(6055026)(6041248)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(20161123562025)(20161123560025)(20161123555025)(20161123564025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:BN6PR12MB1137;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:BN6PR12MB1137; X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtCTjZQUjEyTUIxMTM3OzQ6MHNET1M4WGVXdjFzNUI5Q2FITjdJL2NOZUxF?= =?utf-8?B?UUx3c2FzZXp6eGpKcTdtL0FFVE92aWxnaVhUQ1BGbHpyU1hHajc0ZHpFQnVn?= =?utf-8?B?ZHlDY0RPYjEzTnZYVGEvWVBYM2xjSXhCcjFGWi9DOW5MQkQ4QW1NVHdjWXp2?= =?utf-8?B?aDFrRUFRcnF6UVRVYWNSN3I5ZHlNUC9WT3FxNmVMdlN4MHNOQ1EvclhZaXBI?= =?utf-8?B?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ZjZkNitL?= =?utf-8?B?VW9qdnV1bkFkUHVIZHNYc1lkOXA4Vi9aQ1YwdHpROXZMTytGMVNZNVFIZ2ps?= =?utf-8?B?SkZBRUFMRGRKRXRsWTVOUGN5UWpyaEo3ZUgyQlZoL21ZaWFpNnZoNFNBNDRs?= =?utf-8?B?VEE0WGVvbzJweTFhdU90WEZPQTJ4YjFUbC9wK2d1NG5xT3p5K0NuVXN2NnMy?= =?utf-8?B?QmVSU1J6SDg4TWxkNkVkUFd1Wno2ei9hd0xiVEhZK3JCdFgyN1g3blBYZFJH?= =?utf-8?B?MXlDUW5JSEJpb0VRN082WkxGMDNNNk1qYlh0Y3BlSW1XTWd2c0d5bmF0aWJX?= =?utf-8?B?cDVRZnJBODI3Zi9DbWxxZTEvNThnS040STlHTjNBVkpoa3V3Um1Fc2NreTMy?= =?utf-8?B?UkNDbFl6L3JBTnB3c1hKSnI4T0hjeUVLUWEyeUsrZXd5Z1hRV25CY1NLbFFx?= =?utf-8?B?YTNYUC8xYnpramJJZ0xLRDdBNW5YZz09?= X-Forefront-PRVS: 03793408BA X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(4630300001)(7370300001)(6009001)(6049001)(39400400002)(39450400003)(39850400002)(39860400002)(39410400002)(39840400002)(199003)(189002)(377454003)(24454002)(101416001)(3260700006)(25786009)(54356999)(31686004)(64126003)(76176999)(50986999)(53546010)(93886004)(7350300001)(54906002)(478600001)(23676002)(53936002)(106356001)(6246003)(110136004)(38730400002)(105586002)(42186005)(230700001)(3846002)(33646002)(2950100002)(72206003)(6116002)(229853002)(6916009)(4326008)(2906002)(189998001)(83506001)(6486002)(8676002)(47776003)(68736007)(65826007)(7406005)(90366009)(7416002)(36756003)(97736004)(5660300001)(50466002)(77096006)(81166006)(66066001)(81156014)(305945005)(4001350100001)(65956001)(31696002)(86362001)(65806001)(7736002);DIR:OUT;SFP:1101;SCL:1;SRVR:BN6PR12MB1137;H:[10.236.64.250];FPR:;SPF:None;PTR:InfoNo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MnNZY2VESWtsU2xPME9HMHJCbVhDVnRtNnhLMXpPUFVh?= =?utf-8?B?QmFZbGlYajlueGJWMkxmMXdUNlAvWnhsdDRGSElHV1pHTGczMXJoYnJXTWV1?= =?utf-8?B?VDFCdGtxYjlGV0kzSWxYL1U4blpheXduSXFKVTltb29DdnpHQzU0M0h2d3VS?= =?utf-8?Q?uAmMbHy?= X-Microsoft-Exchange-Diagnostics: 1;BN6PR12MB1137;5:v2nBi+x6GD4t+5JxfPUJlfjcXxT0bQnKA3VU9tqYHxTRFRs2XSA1Uz1SomiMZAEuHHHVPx66NWz6yCBzDZ/r6cf50t3ur1+nDxeoHmfGixQCgMd/psCYMHlxFHYt1RTQ3hT3AWmgGNBH1hy040vVPqd2FAfPeYxoJYDtN+Q6NtTIqlI/tQsUJAq2n5W7QhYFAgY98ibjXQOqsiqIMEQvdUH+Xo2m3HCllzSvCCAoBqSmuqxo+eDiyhCJWQ0vo03uo2sRF3iWGbSLTqjItyPqJkfmo0m426r2V7lmx6rOxlFLo+MoZfvA3RxeTIl6lnS5zu6VtBBT/+4xVlfXS/C9MzoGpAiyqYx1b5E99CZYGAk4io1Kx09xB+C86trAmsWaHLS8X3WP6UVz80sWatlRD3G9FDMAeS9l6hAWfPaIeDfBueCBuel2fJnzRjhXVE0cY/mm+xOKgbnpdA/P9hNf8u/KBgpgvvqojbySHJ9tlpFJw2imasjvXD6ZxL3nMEgx;24:rkSV939h+4ucArmFPG588uvo0V7uCALXgZIRcDhjZUFhd+fTuN5BaYkUhLUynKtQ+do9vHR0bGFQUEx0cPTD1i1nGvrzLcUBJts51ejUEVg= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;BN6PR12MB1137;7:fksnpb1al2u+2GDSqRgdU0KaDGpuVjoTG4kCnpb79S+a59gl+xf6qEriivT5MvRAgSD/yd9PEyfY4n+X37e3ENtL95do1dliFXyVnvOPXKhuWvvth438hJTEWTnzA86s0/XlSjCBHwtHFORUmz/3DojXFOpAmeGQ3aXuBi1cYqjtJz+2k1QAfrkqN0/D/IdBo9GuSYU/76WVzOMZb5j1vhGOjOTLKIYPEMndbHFlmvZ5jX5KN6DBuVVwCqQYjuvg0O0wbBVxvAV/9WS2x2KQtryj4TZfRt2dbbfeM9nO+7bwCNaisAJavdodUB+d+yyhPcXEbZyAGfM4n5vrciTkMrDKaJ0jJgaB9QLJaNSJFeg0i2fI7mu7YGP7oAjWC11maD+wjviRa242+fBc2nAmhdKyRW7KjJVK7600JHHZzh9/3oIo+PDgI+lfuVAUzZCqn1YugvtbSXT8kCgWpu/HIWTCo2MyyZ6VePjPk5MVYiTKDc+svyQqI6gLb2lYAYV6ceitKOF1Swr2dbs5KoL8PT0H17pGHzOkFwfIUoSFOfnll5WkRA0g8dV7p5lhAmvNjPHiL8YjSL72KOOGBQQfZVCs44Epl3PrEelJJq2EPW9nAeWlp+VrE3ML2lem6YGHEf5xI4/2oIwgutPMBnjR7TRa5e/JHfSDak7WycyVILhkloC0ZmI9tKgcnENJ7tI2yPZQlkHUekjz9du7n5VEruwcmuG33fh8uyxlT+1YhY7N0UuuLqA89FI+amRDghdler6uS1tJ8kBDBJ/tW0w7BYavt1/mOb4O5iZwXtLtat0= X-Microsoft-Exchange-Diagnostics: 1;BN6PR12MB1137;20:OXB4vF8eHh3Lptmx+nKlZUCN+xN75M4xt6v3v+lTdX4fKTSf5icUyXNTdLQdFDHYBWameK+gOD0aNUMWugB5LitgnAo4bUGRbdype6E+mzPRhdlW4g62lgUgLDSdVCP0aId92RV/bM8QankfGaXGK9ACc4M/auWAoJLIk0oZsRyh2UlPKDaWhn8hGuVdkEmFKv19EFVNawbusOWQm/5HIO8JRhh6CzlvRm9m879WKjO1hC+1PExD9n3uGzcpJ4FT X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Jul 2017 15:29:43.1444 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR12MB1137 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 568 Lines: 16 On 7/25/2017 10:13 AM, Borislav Petkov wrote: > On Tue, Jul 25, 2017 at 09:58:54AM -0500, Tom Lendacky wrote: >> True, but it is more about being accurate and making sure the value is >> correct where ever it may be used. > > So early_identify_cpu() initializes phys_bits to 32 on 32-bit. > Subtracting it there would actually make actively it wrong, AFAICT. But early_identify_cpu() calls get_cpu_cap() which will check for cpuid leaf 0x80000008 support and set x86_phys_bits. I'll try to build and run a 32-bit kernel and see how this all flows. Thanks, Tom >