| Date | Thu, 24 Feb 2022 08:16:08 -0800 | From | Dave Hansen <> | Subject | Re: [PATCHv4 02/30] x86/tdx: Detect running as a TDX guest in early boot |
| |
On 2/24/22 07:56, Kirill A. Shutemov wrote: > From: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com> > > In preparation of extending cc_platform_has() API to support TDX guest, > use CPUID instruction to detect support for TDX guests in the early > boot code (via tdx_early_init()). Since copy_bootdata() is the first > user of cc_platform_has() API, detect the TDX guest status before it. > > Define a synthetic feature flag (X86_FEATURE_TDX_GUEST) and set this > bit in a valid TDX guest platform. > > Signed-off-by: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com> > Reviewed-by: Andi Kleen <ak@linux.intel.com> > Reviewed-by: Tony Luck <tony.luck@intel.com> > Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
I'm glad this *finally* converged on an X86_FEATURE flag alone. Thanks for fixing up the text:
Acked-by: Dave Hansen <dave.hansen@linux.intel.com>
|