Re: [PATCH v3 16/26] x86/virt/seamldr: Shut down the current TDX module
From: Tony Lindgren
Date: Mon Jan 26 2026 - 05:43:41 EST
On Fri, Jan 23, 2026 at 06:55:24AM -0800, Chao Gao wrote:
> TDX Module updates request shutting down the existing TDX module.
> During this shutdown, the module generates hand-off data, which captures
> the module's states essential for preserving running TDs. The new TDX
> Module can utilize this hand-off data to establish its states.
>
> Invoke the TDH_SYS_SHUTDOWN SEAMCALL on one CPU to perform the shutdown.
> This SEAMCALL requires a hand-off module version. Use the module's own
> hand-off version, as it is the highest version the module can produce and
> is more likely to be compatible with new modules as new modules likely have
> higher hand-off version.
Reviewed-by: Tony Lindgren <tony.lindgren@xxxxxxxxxxxxxxx>