Re: [PATCH v2 12/17] x86/virt/tdx: Reinitialize the Quoting extension after TDX module update

From: Tony Lindgren

Date: Thu Jun 25 2026 - 02:12:51 EST


On Thu, Jun 18, 2026 at 04:13:50PM +0800, Xu Yilun wrote:
> From: Peter Fang <peter.fang@xxxxxxxxx>
>
> Invoke TDH.QUOTE.INIT again after a runtime module update to trigger the
> necessary rekey procedure in the TDX module.
>
> Keep the existing Quote buffer since memory allocation is not permitted
> during the update. Compatible TDX module updates must not increase the
> Quote buffer size, or an undersized buffer might cause Quote generation
> to fail. See [1] for module update details.
>
> [1] Documentation/arch/x86/tdx.rst, Section "TDX module Runtime Update"

Reviewed-by: Tony Lindgren <tony.lindgren@xxxxxxxxxxxxxxx>