Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751626AbdIFSHA (ORCPT ); Wed, 6 Sep 2017 14:07:00 -0400 Received: from mail-bl2nam02on0045.outbound.protection.outlook.com ([104.47.38.45]:28672 "EHLO NAM02-BL2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750807AbdIFSG6 (ORCPT ); Wed, 6 Sep 2017 14:06:58 -0400 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=brijesh.singh@amd.com; Cc: brijesh.singh@amd.com, Boris Ostrovsky , X86 ML , "linux-kernel@vger.kernel.org" , Ingo Molnar , "H. Peter Anvin" , Thomas Gleixner Subject: Re: SME/32-bit regression To: Borislav Petkov , "Lendacky, Thomas" References: <4c07148a-5d97-0fc2-aa9b-1db31429736d@oracle.com> <20170906092618.fkvzrqx32z6iqf2t@pd.tnic> <20170906094504.6pp4xdsmcxaympth@pd.tnic> <20170906164417.2terp5ioelzglehq@pd.tnic> From: Brijesh Singh Message-ID: <56f022a2-e363-0524-68ba-c31950d96e0d@amd.com> Date: Wed, 6 Sep 2017 13:06:50 -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: <20170906164417.2terp5ioelzglehq@pd.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: BN6PR17CA0015.namprd17.prod.outlook.com (10.173.147.25) To SN1PR12MB0159.namprd12.prod.outlook.com (10.162.3.146) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 42c0e7b7-2a32-4c6b-536d-08d4f5520f18 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254152)(48565401081)(300000503095)(300135400095)(2017052603199)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095);SRVR:SN1PR12MB0159; X-Microsoft-Exchange-Diagnostics: 1;SN1PR12MB0159;3:L312X25XYcbGPfFZyoGz75B//9KgFVsrr8CCOQGyu5d3o0Y81UYAHmxLrBl2Pif9FENQDT79QHxYDUADFG1B6WJUmLcqLr4Uln5BU/dTCMrHoKNFnHBS126rKvl323PH/UqGN/Mh8/fu9hDhYkKd+/JJ4nX5Q1tIkuHIOEPLfm7IKZciTfZHZncIfH6uB+WnVQFaPVQ3F5L7TXbBj9YrVUV0juTjzDflpt+fYtH1J8knhjBnycLSH9fHC1e3UKcc;25:LJG4376doMrZPBY96dl5sgFoYcsGTQ9+ti2PhU9Gcu0ZjpKdv5JGnUvoc1XW5Ex8FLYkr2z/bOPbX6zDTOXuqNtCuzCfrHI+fAuV/Nw5BOgMtCwuHAgYgknh+OKnwluz6HCwzxXzEltNI1q2CeEeoWImwELOoCZvIhPJ7qSzHv4eg239gC/dqv1F93Umh1vBKH6Tm8uFry3H6sG4GLxVc5jaZ+4xksQ4JLWiDHrn/wz1pYk6D5UiT3fTd65CWM6J7MwwkrrKebYqqethhPInEB0rv2xtJyggjJcOj1dQZ1boYAitq+IicNtXl7j1a9dhOEeMMbKjGCDdjbfcEvPXnA==;31:tRVywL8bPlW2YG2SRfr9AaF8+SNa2P8Uu0jxoRGDcQsbZKi9UH11ug20PsX8gqD3kRHdU5Os9poqU3ghDiAu0klZ2ZtPAZrCmKOTbGufBSqyVYf4nn197BFcWD9uXtUUHFsqAb4wfrM0R5BRZt3PXbJhy/87c0T7ccZCnshe/e35L0TO16ME7JZD1EruWUZ/VatDS45nVlbiIPEZG58IcSotHnh7Nj/X0qhQiun9ejU= X-MS-TrafficTypeDiagnostic: SN1PR12MB0159: X-Microsoft-Exchange-Diagnostics: 1;SN1PR12MB0159;20:5aNZq1S/Ps5Yj85XaBbMRgXwHAfIxl9EIcOQkVumpMXPiXHhao1VoXILjv+msiVJyQYYF76LiFvh96SjMc/687fFv0D9R0aORI8VWo2AeQTgMV2JcOexNgh/LzAFXx9GXRHLA5KiW+DyKtsRojxIPxzvAYa+oUzQOVUG2XzRaqd9g0eliZPr/WmDOTr3SXkld2sGQUaj6wUhPQ9lfD9BzuqkHscETbaWCdxryowqgG6lW4v6UB3QcBdDnlx3jcFmpvN8RqL3FVPFvlVHMo/NGlzn/Gun8B75bif8vLLXpbVl7dcTSZeot/vaztjJT0nRZgpSXIo6BEwrCPfOjp/HtnltHA2tUf63wIaiFKtZJQjiubO5PJhqkyKwfRQmtXBmuJLgGBMsm/X0y6XtezeRTIPicgxJsnCI9mo4FnvZMQeMKvlcjwlhiASXsNZ4ASYIg5o7g9CiTwM66LdDIrwUXPmmN+bhP0GU9pEdo7w5+oJazkWwyQVCAleUlNJ+w9B3;4:Bk9fKDRnD3DsEBwKMmA3JZWkgJPw5FG+cptZHotKB3s2xS+i4381YmoRcnAGIocVuUvKBg1ZizTV/NtXsz2irYmAWAnFmKuIbzI1pP1slAGpOm+3AO2JOwpvZWKuOvFzmC1iOGDbKK/po33k5OsQHkUzAGeAcSzCtnpHrrg6TAHM54HHmyzFRmXT8ZXynRgLHfoaLRnIwjoCP+nV3MMT8YXl7Au08vmBfP88ZX+dKiqgOMtkDnXKVv6QD9lF7GAu 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)(2401047)(8121501046)(5005006)(93006095)(93001095)(10201501046)(100000703101)(100105400095)(3002001)(6055026)(6041248)(20161123560025)(20161123564025)(20161123555025)(20161123562025)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:SN1PR12MB0159;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:SN1PR12MB0159; X-Forefront-PRVS: 0422860ED4 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(6009001)(6049001)(39860400002)(189002)(377454003)(199003)(24454002)(64126003)(8936002)(65806001)(65956001)(66066001)(4001350100001)(23676002)(6116002)(97736004)(50466002)(8676002)(81166006)(81156014)(6636002)(86362001)(2950100002)(90366009)(83506001)(31696002)(6666003)(77096006)(93886005)(229853002)(53546010)(6486002)(478600001)(25786009)(305945005)(7736002)(106356001)(105586002)(65826007)(50986999)(76176999)(54356999)(2906002)(101416001)(5660300001)(68736007)(54906002)(42186005)(6246003)(189998001)(31686004)(36756003)(230700001)(33646002)(4326008)(47776003)(3846002)(53936002);DIR:OUT;SFP:1101;SCL:1;SRVR:SN1PR12MB0159;H:[10.236.136.62];FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtTTjFQUjEyTUIwMTU5OzIzOjdIYzQ2elBWbHNFdTIzbW9zUlBlWno0dlN5?= =?utf-8?B?QkcrU28vSEpzekp3dWRWZlY2b1BFTSs0MHVKNGtWbkJYM2VMOFkvbnMwSXZF?= =?utf-8?B?L2k3TU9mZUgzeEY5ZTN5WmJVSlpEZnB6ZC9lWVdueEY0dG11eG1ONHo3cGRl?= =?utf-8?B?Tm00OHFnb1R2N2psMXpWMnNiSG8zS0Q1RGRsYjFOSHFsZGoxczFuUElzeWxw?= =?utf-8?B?V1NvUDc2NFpUZEV0S2laTGlXSEZFYTEwVzVNazVhdmpMVXdtTTJDa0p0QUt0?= =?utf-8?B?Yi9aSk1NUUpGSVBrZEU0TFQ0UDhpY2d1em1ocjJnV1FRWGNRdk1kbDdyVi9s?= =?utf-8?B?TVA0Tnl6YmFDVmhJN3UwTzBmSG9IZlBUUnBZU082Yk9TSWlHT0laY25td3B0?=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9FH86AtH5/PDaAsDRPGDT22+7JNWlJVh2dKFF+OF+VqrAqEIeKLMgC8N4BsdPqW/ci1xYZzy+G59JWo5wH4Dg0gUc1dNvprk35TEsIDRE34z2C25mwqto4sfciwbIAxk8QXdGpKw==;24:5EZ+Q3HOuyOCT0pgbUbJLZ0ThQr0J3chrT8bZa4Gm9KCHtQYEsT0nRmeK6l10pUWg1mz68jOA3iTg6i4idGR5BHGoxpSRqxYyB82/+H5gtY=;7:VCSkQwwOVaioyY+h+wSVqR+Bctg1Y9N0LJ5/HIMnQIeHlKUQBkGC57ffYHHg0aFjgpdFpsu6KfZCrj2bOMuzlaMMpiCJzS6DIDPr7z2GCe9AjkRHtvYyBsp/uTO7xHglOd2JJSPmkAdqjxeM1osj59RJArEJ5dveyg8xTS2t2RABBQoqYPhc27jE4+TaSU49M6wLwKNzSHKis2nR7LcrWqz4kM6vIV+sl7Nvr2y/yf0= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;SN1PR12MB0159;20:SvGxtMWVIaMeSW7Vo9yHvN6gkJVi7BtGENPq8PgBNAmrIdZLoALcLrZSrB/RanvbIRKKYIN1vaG+pUrOKleTNC0Ih7C5EOxXuNWR4mC7bejkVavOX2LEJeBh+t5gmtzlQMkar495uPDULW89GpbQoRfLJuolNYbtp6pmHzx8i8g3w0VIO7xBTF+xayAy1l/+t3wQ5D1MlF19vIVJJKkPETguEg3QyCx7PxWlSH76/rb4zs8JHjtHsHHMOOcEpPX8 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Sep 2017 18:06:54.7958 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1PR12MB0159 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1115 Lines: 34 On 09/06/2017 11:44 AM, Borislav Petkov wrote: > On Wed, Sep 06, 2017 at 04:30:23PM +0000, Lendacky, Thomas wrote: >> Sorry for the top post, I'm on holiday and don't have access to a good >> email client... I went with unsigned long to match all the page table >> related declarations. If changing to u64 doesn't generate any warnings >> or other issues them I'm good with that. > > Ok, no worries. Lemme run the smoke-tests on it and test it to see > everything else still works. > I did the following quick run with your patch and everything seems to be working okay 64-bit build: ------- 1) Baremetal SME *enabled* - System boots fine a) 32-bit guest launch : successful (KVM HV) b) 64-bit guest launch : successful (KVM HV) c) 64-bit SEV guest launch : successful (KVM HV) 2) Baremetal SME *disabled* - System boots fine a) 32-bit guest launch : successful (KVM HV) b) 64-bit guest launch : successful (KVM HV) c) 64-bit SEV guest launch : successful (KVM HV) 32-bit build ---------- I am installing 32-bit distro to verify 32-bit baremetal boot and will report my findings soon. -Brijesh