Re: [PATCH v10 000/108] KVM TDX basic feature support

From: Isaku Yamahata
Date: Thu Jan 12 2023 - 11:21:29 EST


On Tue, Jan 03, 2023 at 04:26:59PM +0800,
"Wang, Lei" <lei4.wang@xxxxxxxxx> wrote:

> On 10/30/2022 2:22 PM, isaku.yamahata@xxxxxxxxx wrote:
>
> > ** Detecting the TDX module readiness.
> > TDX host patch series implements the detection of the TDX module availability
> > and its initialization so that KVM can use it. Also it manages Host KeyID
> > (HKID) assigned to guest TD.
> > The assumed APIs the TDX host patch series provides are
> > - int seamrr_enabled()
> > Check if required cpu feature (SEAM mode) is available. This only check CPU
> > feature availability. At this point, the TDX module may not be ready for KVM
> > to use.
> > - int init_tdx(void);
> > Initialization of TDX module so that the TDX module is ready for KVM to use.
> > - const struct tdsysinfo_struct *tdx_get_sysinfo(void);
> > Return the system wide information about the TDX module. NULL if the TDX
> > isn't initialized.
> > - u32 tdx_get_global_keyid(void);
> > Return global key id that is used for the TDX module itself.
> > - int tdx_keyid_alloc(void);
> > Allocate HKID for guest TD.
> > - void tdx_keyid_free(int keyid);
> > Free HKID for guest TD.
>
> tdx_enable() is introduced by TDX host patch series and used in patch 5, should
> it be added to this list too?

Thanks, I've updated the cover letter to catch up the host tdx patch series v10.
--
Isaku Yamahata <isaku.yamahata@xxxxxxxxx>