Re: [PATCH v3 24/26] x86/virt/seamldr: Extend sigstruct to 16KB
From: Chao Gao
Date: Fri Jan 30 2026 - 09:25:51 EST
>Let's move the discussion here (from patch 13 -- sorry about that):
>
>IIRC this patch just simply re-purposes couple of reserved space in
>SEAMLDR_PARAMS (which is part of P-SEAMLDR ABI) w/o enumeration, explicit
>opt-in whatever. The code change here doesn't even bump up its version.
>
>IIUC, if this code run on an old platform where SEAMLDR.INSTALL still only
>works with 4K SIGSTRUCT, the SEAMLDR.INSTALL will only see part of the
>SIGSTRUCT thus will likely fail.
>
>How can we know whether a given 'struct tdx_blob' can work on an platform or
>not? Or am I missing anything?
Good question.
This is actually userspace's responsibility. The kernel exposes P-SEAMLDR
version to userspace, and for each module, the mapping file [*] lists the
module's minimum P-SEAMLDR version requirements. This allows userspace to
determine whether the existing P-SEAMLDR can load a specific TDX blob.
If the kernel cannot load a module using the current P-SEAMLDR, that's
userspace's fault.
*: https://github.com/intel/confidential-computing.tdx.tdx-module.binaries/blob/main/mapping_file.json