Re: [PATCH 1/2] x86/tdx: Add helper to query maximum TD Quote size
From: Peter Fang
Date: Tue Jul 14 2026 - 01:56:50 EST
On Mon, Jul 13, 2026 at 09:01:38AM -0700, Kuppuswamy Sathyanarayanan wrote:
>
>
> On 6/12/2026 4:08 AM, Peter Fang wrote:
> > TDX attestation blob ("TD 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 TD Quote size via a TD-scope
> > metadata field. Add a helper to query it instead of exposing tdg_vm_rd()
> > directly, as it can read arbitrary metadata fields.
> >
> > Thanks to Xu Yilun for suggesting this.
>
> I'm not sure what the original suggestion was. Perhaps a link to the discussion
> (or Xu Yilun's email) would be helpful for context.
It was an internal discussion. I can add that to the changelog.
>
> >
> > Assisted-by: Claude:claude-opus-4-7
> > Assisted-by: GitHub Copilot:gpt-5.4
> > Signed-off-by: Peter Fang <peter.fang@xxxxxxxxx>
> > ---
>
> Looks good to me.
>
> Reviewed-by: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@xxxxxxxxxxxxxxx>
>
Thanks Sathya!