[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v2 1/3] x86: Add AMD's CpuidUserDis bit definitions


  • To: Alejandro Vallejo <alejandro.vallejo@xxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Thu, 11 May 2023 11:41:13 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=vwK8xy/p8hr9PzAIZvLZ2B03WcEt3mvoJWxm84yJlmU=; b=LhkTSYO/xAalJKOj0F0pUPxjOBMFgdcAP3l/tYnhLdBEIccX0BbPkjys53oCu19ILVKBIrZsu4iQ0T/fyZIQL5tRNgSyvQr2FcEZhI4pIeVImA3/6IDhDte7p/cWf3kVYugJniVjH1R3avl+xC/+UqRyrjV5lR9+ebx80WLpCOA1WjvGxmUJaHuYKFLvRO97s8CLaYY9FJbyoKo4cpnIRPcjU2GpJ6iweiH76OdCeLpu9ji7hNMlTJyuOQm2Bivx5pP+pcg3KGV+3fZRDDY5rE7R8PoxnoMnze8hepBpdzMbXOEE4Tkhdl4yJTL7/tnMVjvWzXaI8uimB+lWanyQqw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YMwy4P+b16P03MGpHi2J7Pi0ZUyxyjMR3/hDPlolvWZF66m7f5xUobmPiGXV8Ajw38pAkcwOi/hukdlSYILl3mtt1DwWWtxqvnsO0vrIkUKDe+U7tcXEhd4a5BitVyv9oX1h+A/efxof11kx0X7DKrl/N4tUnmJLbv3zS/+YYpUv7bnwd8ZAFf6Pvy5haj+wgexZJzBnRWHVQLX3s46r5sjKDldu8u7w6C+sEc4YFazWeE6P3zc9OVeZoh88RIXEQ4IT68wUTnoFMeqUkHE2CXwrE2T/Og4R6Dlu0pxMy8RZBjO/NyhxdNQgu20WZsD6q6EUg171NRWrGSbcfnJxlw==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: Wei Liu <wl@xxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>, Juergen Gross <jgross@xxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Thu, 11 May 2023 09:41:26 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 09.05.2023 18:43, Alejandro Vallejo wrote:
> --- a/xen/include/public/arch-x86/cpufeatureset.h
> +++ b/xen/include/public/arch-x86/cpufeatureset.h
> @@ -287,6 +287,7 @@ XEN_CPUFEATURE(AVX_IFMA,     10*32+23) /*A  AVX-IFMA 
> Instructions */
>  /* AMD-defined CPU features, CPUID level 0x80000021.eax, word 11 */
>  XEN_CPUFEATURE(LFENCE_DISPATCH,    11*32+ 2) /*A  LFENCE always serializing 
> */
>  XEN_CPUFEATURE(NSCB,               11*32+ 6) /*A  Null Selector Clears Base 
> (and limit too) */
> +XEN_CPUFEATURE(CPUID_USER_DIS,     11*32+17) /*   CPUID disable for 
> non-privileged software */

While I can accept your argument towards staying close to AMD's doc
with the name, I'd really like to ask that the comment then be
disambiguated: "non-privileged" is more likely mean CPL=3 than all
of CPL>0. Since "not fully privileged" is getting a little long,
maybe indeed say "CPL > 0 software"? I would then offer you my R-b,
if only I could find proof of the HWCR bit being bit 35. The PM
mentions it only by name, and the PPRs I've checked all have it
marked reserved.

Jan



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.