Re: [PATCH v3] x86/virt/tdx: Skip TDH.SYS.DISABLE if the TDX module is not initialized
From: Dave Hansen
Date: Fri Oct 30 2026 - 12:13:34 EST
On 10/30/26 08:48, Challvy Tee wrote:
> --- a/arch/x86/virt/vmx/tdx/tdx.c
> +++ b/arch/x86/virt/vmx/tdx/tdx.c
> @@ -2321,6 +2321,9 @@ void tdx_sys_disable(void)
> struct tdx_module_args args = {};
> u64 ret;
>
> + if (!tdx_module_state.initialized)
> + return;
NAK from me on this.
If SEAMCALL is fatal then we need stronger barriers on the generic paths
to SEAMCALLs themselves, not one-off patches of the sites.