Re: [PATCH v2 1/2] x86/tdx: Add helper to query maximum TD Quote size
Binbin Wu <[email protected]> Wed, 22 Jul 2026 21:21:12 +0800
| Newsgroups | dev.linux.lists.linux-coco,org.kernel.vger.kvm,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
On 7/18/2026 5:43 AM, Peter Fang wrote:
> TDX attestation report ("Quote") sizes can grow with newer cryptographic
> schemes, so guests can no longer rely on a fixed-size buffer for the
> Quote.
>
> Newer TDX modules report the maximum Quote size via a TD-scope metadata
> field. Add a helper to query the size instead of exposing tdg_vm_rd()
> directly, as it can read arbitrary metadata fields.
>
> Thanks to Xu Yilun for suggesting this in an off-list discussion.
>
> Reviewed-by: Kiryl Shutsemau (Meta) <[email protected]>
> Reviewed-by: Xiaoyao Li <[email protected]>
> Reviewed-by: Kuppuswamy Sathyanarayanan <[email protected]>
> Signed-off-by: Peter Fang <[email protected]>
Reviewed-by: Binbin Wu <[email protected]>