Re: [PATCH v3 4/6] x86/virt/tdx: Make TDX module initialize the extensions

From: Xu Yilun

Date: Sat Oct 10 2026 - 12:59:45 EST


On Fri, Oct 09, 2026 at 07:03:08PM +0000, Edgecombe, Rick P wrote:
> On Tue, 2026-10-06 at 01:41 +0800, Xu Yilun wrote:
> > TDX module extensions need memory for their execution environment
> > to serve SEAMCALL leafs. Several add-on features depend on the
> > extensions to execute their SEAMCALL leafs.
>
> Can we get a little more about what this SEAMCALL is actually doing? To be able
> to reason about how long it will take. Obviously it does nothing now, but when
> we enable the fist extension.

Good to me. I re-wrote a new version:

TDX module extensions use kernel-gifted memory for their execution
environment to serve SEAMCALL leafs. Several add-on features depend on
the extensions to execute their SEAMCALL leafs.

After providing all required memory to the TDX module, initialize TDX
module extensions via TDH.EXT.INIT. This is a time-consuming process,
during which the TDX module loads its internal extension image into this
memory and builds the execution environment. Once initialized, those
add-on features can use their SEAMCALL leafs normally.