Re: [PATCH v3 10/12] x86/virt/tdx: Wire up basic SEAMCALL functions

From: Huang, Kai
Date: Mon Aug 07 2023 - 19:51:14 EST


On Mon, 2023-08-07 at 07:30 -0700, Sean Christopherson wrote:
> On Mon, Aug 07, 2023, Kai Huang wrote:
> >
> > > >
> > > > +config INTEL_TDX_HOST
> > > > + bool "Intel Trust Domain Extensions (TDX) host support"
> > > > + depends on CPU_SUP_INTEL
> > > > + depends on X86_64
> > > > + depends on KVM_INTEL
> > >
> > > Hm. I expected KVM_INTEL to depend on CPU_SUP_INTEL, but apparently no.
> > > Any reasons why?
> >
> > Hmm.. Not sure :-)
>
> Centuar and Zhaoxin CPUs also support VMX.
>
> commit 8f63aaf5c493c6502a058585cdfa3c71cdf8c44a
> Author: Sean Christopherson <seanjc@xxxxxxxxxx>
> Date: Fri Dec 20 20:45:13 2019 -0800
>
> KVM: VMX: Allow KVM_INTEL when building for Centaur and/or Zhaoxin CPUs
>
> Change the dependency for KVM_INTEL, i.e. KVM w/ VMX, from Intel CPUs to
> any CPU that supports the IA32_FEAT_CTL MSR and thus VMX functionality.
> This effectively allows building KVM_INTEL for Centaur and Zhaoxin CPUs.
>

Ah. Thanks Sean!