Re: [PATCH 01/15] x86/virt/tdx: Read global metadata for TDX Module Extensions

From: Xiaoyao Li

Date: Mon May 25 2026 - 02:27:21 EST


On 5/22/2026 11:41 AM, Xu Yilun wrote:
Add reading of the global metadata for TDX Module Extensions.

TDX Module Extensions is an add-on feature enumerated by TDX_FEATURES0.

But for the Module's integrity, Linux requires that all features that a
Module advertises must have a complete, valid set of metadata,

I doubt on this.

1. Is it a must that any new feature introduces new metadata field?

2. Linux only cares the integrity for the features it uses, not for all the features.

and the
validation must succeed at core TDX initialization time.

Check TDX_FEATURES0 before reading these metadata. If a feature is
advertised, a failure in reading associated metadata causes the entire
TDX initialization to fail, otherwise skip.

I'm not sure why we need to explain the behavior when the reading fails. It's not different to other existing fields.

Instead, I think you can explain why we need to check TDX_FEATURES0_EXT at first.

Anyway, I don't read it as a good changelog. It event doesn't tell what the added fields are and why we need them.