Re: [PATCH v3 2/9] x86/virt/tdx: Read global metadata for trusted IOMMU

From: Baolu Lu

Date: Tue Nov 24 2026 - 21:57:59 EST


On 11/24/2026 4:13 PM, Tian, Kevin wrote:
From: Baolu Lu <baolu.lu@xxxxxxxxxxxxxxx>
Sent: Monday, November 23, 2026 12:10 PM

On 11/18/2026 9:39 PM, Binbin Wu wrote:
On 11/12/2026 12:30 PM, Lu Baolu wrote:
Add support for reading the global metadata of the trusted IOMMU.

The trusted IOMMU feature is optionally enumerated via TDX_FEATURES0.
Nit:
The feature enumerated is TDX Connect, I don't think they are
interchangeable.
Trusted IOMMU is part of TDX Connect, right?

Yes. I will update it like this:

Add support for reading the global metadata of the trusted IOMMU, which
is part of TDX Connect.

TDX Connect support is optionally enumerated via TDX_FEATURES0. Check
this feature bit before reading the metadata to avoid causing the entire
TDX initialization to fail on platforms that do not support it.


let's not introduce new terms here. TDX Connect is Intel's branding name
for trusted I/O. Intel IOMMU introduces a new TDX mode to support
trusted DMA for trusted I/O.

so here we just read metadata of the TDX Connect feature, which includes
information to enable the TDX mode in Intel IOMMU, blah blah...

Okay, sure.

Thanks,
baolu