Re: [PATCH v5 3/6] x86/virt/tdx: Add extra memory to TDX module for the extensions

From: Xu Yilun

Date: Wed Nov 25 2026 - 02:05:49 EST


On Tue, Nov 24, 2026 at 07:54:00AM +0000, Tian, Kevin wrote:
> > From: Xu Yilun <yilun.xu@xxxxxxxxxxxxxxx>
> > Sent: Wednesday, November 11, 2026 11:49 AM
> >
> > TDX module extensions need memory for their execution environment to
> > serve SEAMCALL leafs. The TDX architecture implements the extensions
> > in such a way that they use the memory outside of SEAM range, so the
> > kernel should add the memory upfront at initialization time.
>
> The cover letter says:
>
> TDX provides a separate SEAMCALL execution *environment* - the TDX
> module extensions - for those operations.
>
> So the TDX module extensions is an environment, to support operations
> of various add-on features.

The TDX module extensions are the enviroment, the TDX module brings them
up as a whole. But internally, they are composed of several independent
services, each supports one feature.

>
> Here "TDX module extensions need memory for *their* execution
> environment" - 'their' seem to indicate that the extensions itself is not
> an environment. sounds like referring to the add-on features instead.

How about making it simple:

The TDX module needs memory to setup the extensions. The TDX
architecture ...

>
> later in patch5:
>
> Note that TDH.EXT.INIT builds all configured extensions. The SEAMCALL
> leaf fails if any extension fails to initialize... If a nice-to-have extension
> appears in the future, this can be revisited.
>
> This reads more like 'extension' == 'add-on feature'.

The 'extension' == one service that supports one feature.

>
> Could you clarify it and make it consistent in this series?