Re: [PATCHv5.2 04/30] x86/tdx: Extend the confidential computing API to support TDX guests

From: Dave Hansen
Date: Wed Mar 09 2022 - 19:08:04 EST


On 3/9/22 15:51, Kirill A. Shutemov wrote:
> Confidential Computing (CC) features (like string I/O unroll support,
> memory encryption/decryption support, etc) are conditionally enabled
> in the kernel using cc_platform_has() API. Since TDX guests also need
> to use these CC features, extend cc_platform_has() API and add TDX
> guest-specific CC attributes support.
>
> CC API also provides an interface to deal with encryption mask. Extend
> it to cover TDX.
>
> Details about which bit in the page table entry to be used to indicate
> shared/private state is determined by using the TDINFO TDCALL.
>
> Signed-off-by: Kirill A. Shutemov <kirill.shutemov@xxxxxxxxxxxxxxx>
> ---
> v5.2:
> - Update comment for tdx_module_call() definition and for the
> TDX_GET_INFO call site.

Reviewed-by: Dave Hansen <dave.hansen@xxxxxxxxxxxxxxx>