Re: [PATCH v3 17/26] x86/virt/tdx: Reset software states after TDX module shutdown
From: Tony Lindgren
Date: Mon Jan 26 2026 - 05:44:18 EST
On Fri, Jan 23, 2026 at 06:55:25AM -0800, Chao Gao wrote:
> The TDX module requires a one-time global initialization (TDH.SYS.INIT) and
> per-CPU initialization (TDH.SYS.LP.INIT) before use. These initializations
> are guarded by software flags to prevent repetition.
>
> After TDX module updates, the new TDX module requires the same global and
> per-CPU initializations, but the existing software flags prevent
> re-initialization.
>
> Reset all software flags guarding the initialization flows to allow the
> global and per-CPU initializations to be triggered again after updates.
Reviewed-by: Tony Lindgren <tony.lindgren@xxxxxxxxxxxxxxx>