lkml.org 
[lkml]   [2021]   [Dec]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 01/26] x86/tdx: Detect running as a TDX guest in early boot
On Tue, Dec 14, 2021 at 06:02:39PM +0300, Kirill A. Shutemov wrote:
> From: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>
>
> cc_platform_has() API is used in the kernel to enable confidential
> computing features. Since TDX guest is a confidential computing
> platform, it also needs to use this API.
>
> In preparation of extending cc_platform_has() API to support TDX guest,
> use CPUID instruction to detect for TDX guests support in the early

" ... to detect support for TDX guests... "

> 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.

...

> diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig
> index 793e9b42ace0..a61ac6f8821a 100644
> --- a/arch/x86/Kconfig
> +++ b/arch/x86/Kconfig
> @@ -872,6 +872,19 @@ config ACRN_GUEST
> IOT with small footprint and real-time features. More details can be
> found in https://projectacrn.org/.
>
> +# TDX guest uses X2APIC for interrupt management.

For whom is that comment and who's going to see it? Is that comment
supposed to explain the "depends on X86_X2APIC" below?

> +config INTEL_TDX_GUEST
> + bool "Intel TDX (Trust Domain Extensions) - Guest Support"
> + depends on X86_64 && CPU_SUP_INTEL
> + depends on X86_X2APIC
> + help
> + Support running as a guest under Intel TDX. Without this support,
> + the guest kernel can not boot or run under TDX.
> + TDX includes memory encryption and integrity capabilities
> + which protect the confidentiality and integrity of guest
> + memory contents and CPU state. TDX guests are protected from
> + potential attacks from the VMM.
> +

--
Regards/Gruss,
Boris.

https://people.kernel.org/tglx/notes-about-netiquette

\
 
 \ /
  Last update: 2021-12-14 19:18    [W:0.312 / U:0.976 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site