Re: [PATCH v5 6/6] virt: tdx-guest: Make the Quote buffer size dynamic

From: Peter Fang

Date: Tue Sep 29 2026 - 03:25:46 EST


On Mon, Sep 28, 2026 at 01:37:11PM -0700, Kuppuswamy Sathyanarayanan wrote:
> Hi,
>
> >
> > diff --git a/arch/x86/coco/tdx/tdx.c b/arch/x86/coco/tdx/tdx.c
> > index 323e1efc78ea..847430fc639f 100644
> > --- a/arch/x86/coco/tdx/tdx.c
> > +++ b/arch/x86/coco/tdx/tdx.c
> > @@ -213,6 +213,7 @@ int tdx_get_max_quote_size(u64 *max_quote_size)
> >
> > return 0;
> > }
> > +EXPORT_SYMBOL_FOR_MODULES(tdx_get_max_quote_size, "tdx-guest");
>
> I think you can cleanup other exports consumed by tdx-guest driver
> to use the same format (in a prep patch).
>
> tdx_hcall_get_quote(), tdx_mcall_get_report0() and tdx_mcall_extend_rtmr(0.

There's another patch on the list doing exactly that [1] (and queued),
so I mentioned in the cover letter that perhaps these changes will
eventually fit together.

[1] https://lore.kernel.org/all/20260925131808.2415177-1-nik.borisov@xxxxxxxx/

>