Re: [RFC PATCH 06/15] x86/virt/tdx: Initialize Quoting extension during bringup

From: Dan Williams (nvidia)

Date: Fri Jun 12 2026 - 20:00:29 EST


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 this micro-optimization worth it? What are the classes of quote-init
failures vs just make the policy be anything in the module must init.

> This patch does not include the opt-in portion of the initialization.
> It mainly lays the groundwork for TDX Quoting support. Opt-in will be
> added in a follow-up patch once the feature can be properly used by the
> system.

It is unconditionally calling quote init even if the feature is not
present. Is that not a problem?