Re: [PATCH 1/2] x86/tdx: Add helper to query maximum TD Quote size

Peter Fang <[email protected]>
Newsgroups dev.linux.lists.linux-coco,org.kernel.vger.kvm,org.kernel.vger.linux-kernel
Message-ID <20260714055623.GC3178326@pedri>
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 <[email protected]>
> > ---
> 
> Looks good to me.
> 
> Reviewed-by: Kuppuswamy Sathyanarayanan <[email protected]>
> 

Thanks Sathya!
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.