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:39:40 EST
On 10/30/26 09:26, Kiryl Shutsemau wrote:
>>
>> If SEAMCALL is fatal then we need stronger barriers on the generic paths
>> to SEAMCALLs themselves, not one-off patches of the sites.
> I don't think the generic path is the right place for it. For every
> other caller, reaching a SEAMCALL on a non-TDX system means something
> went wrong higher up, and we want to see it. A check there that quietly
> returns an error hides that. Making it WARN would catch it, but then the
> crash path would still need its own check before the call.
>
> So gate the call on X86_FEATURE_TDX_HOST_PLATFORM, the same way
> paddr_is_tdx_private() does.
Sounds fine to me.