Re: [RFC PATCH 06/15] x86/virt/tdx: Initialize Quoting extension during bringup
From: Adrian Hunter
Date: Thu Jun 11 2026 - 12:30:44 EST
On 22/05/2026 06:41, Xu Yilun wrote:
> From: Peter Fang <peter.fang@xxxxxxxxx>
>
> Initialize the Quoting extension and fetch its metadata during TDX
> bringup.
>
> Because Quoting is an optional TDX feature, do not let its
> initialization failures cause TDX bringup to fail.
Is there a reason Linux needs to support TDX with failed Quote
extension initialization?
> +static void tdx_quote_init(void)
> +{
> + struct tdx_module_args args = {};
> + u64 r;
> +
> + do {
> + r = seamcall(TDH_QUOTE_INIT, &args);
> + } while (r == TDX_INTERRUPTED_RESUMABLE);
> +
> + if (r)
Elsewhere it tends to be:
if (r != TDX_SUCCESS)
> + return;
> +
> + /* Quoting metadata is valid only after initialization */
> + get_tdx_sys_info_quote(&tdx_sysinfo.quote);