Re: [PATCH v7 01/12] x86/tdx: Add Intel ARCH support to cc_platform_has()

From: Borislav Petkov
Date: Fri Sep 17 2021 - 12:57:23 EST


On Thu, Sep 16, 2021 at 11:35:39AM -0700, Kuppuswamy Sathyanarayanan wrote:
> cc_platform_has() can be used to check for specific active confidential
> computing attributes, like memory encryption. For Intel platform like
> Trusted Domain eXtensions (TDX) guest has need for using this function
> to protect the TDX specific changes made in generic drivers.
>
> So, extend cc_platform_has() and add support for Intel architecture
> variant (intel_cc_platform_has())
>
> This is a preparatory commit needed before adding TDX guest support
> to intel_cc_platform_has().
>
> Signed-off-by: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@xxxxxxxxxxxxxxx>
> ---
> arch/x86/include/asm/intel_cc_platform.h | 15 +++++++++++++++
> arch/x86/kernel/cc_platform.c | 5 +++++
> arch/x86/kernel/cpu/intel.c | 9 +++++++++
> 3 files changed, 29 insertions(+)
> create mode 100644 arch/x86/include/asm/intel_cc_platform.h

I did the below. Will queue the whole pile once -rc2 is out.

Thx.

---