Re: [RFC PATCH v2 01/69] KVM: TDX: introduce config for KVM TDX support

From: Sean Christopherson
Date: Tue Jul 13 2021 - 13:54:52 EST


On Fri, Jul 02, 2021, isaku.yamahata@xxxxxxxxx wrote:
> From: Isaku Yamahata <isaku.yamahata@xxxxxxxxx>
>
> Add new config KVM_INTEL_TDX for KVM TDX support. This patch introduce
> a config only. Later patch will implement feature depends on it.
>
> Signed-off-by: Isaku Yamahata <isaku.yamahata@xxxxxxxxx>
> ---
> arch/x86/kvm/Kconfig | 11 +++++++++++
> 1 file changed, 11 insertions(+)
>
> diff --git a/arch/x86/kvm/Kconfig b/arch/x86/kvm/Kconfig
> index f6b93a35ce14..66622901bf7d 100644
> --- a/arch/x86/kvm/Kconfig
> +++ b/arch/x86/kvm/Kconfig
> @@ -96,6 +96,17 @@ config X86_SGX_KVM
>
> If unsure, say N.
>
> +config KVM_INTEL_TDX
> + bool "Trusted Domain eXtensions(TDX) Host support"
> + depends on KVM_INTEL && X86_64
> + select FW_LOADER

Similar to patch 2, it's impossible to review this as is since the FW_LOADER
dependency is for the SEAMLDR side of things, which is not included in this
series.

> +
> + help
> + Extends KVM on Intel processors to support Trusted Domain Extensions.
> + Intel Trust Domain eXtensions(TDX) is an architecture based on CPU
> + instructions and TDX module to deploy hardware-isolated virtual
> + machines(VMs) which is called Trust Domains(TDs).
> +
> config KVM_AMD
> tristate "KVM for AMD processors support"
> depends on KVM
> --
> 2.25.1
>