RE: [PATCH v3 4/9] iommu/vt-d: Add interface for tdx-host when enabling trusted DMA
From: Tian, Kevin
Date: Tue Nov 24 2026 - 22:32:45 EST
> From: Baolu Lu <baolu.lu@xxxxxxxxxxxxxxx>
> Sent: Tuesday, November 24, 2026 3:47 PM
>
> On 11/23/2026 11:08 PM, Xu Yilun wrote:
> >> Add a per-device interface so that an IOMMU is put into Secure TDX Mode
> >> only when a device behind it needs trusted DMA. tdx-host tracks how
> many
> >> devices use each IOMMU and calls into the VT-d driver only for the first
> >> and the last of them:
> >>
> >> - dmar_tdxc_get_params() looks up the DMAR unit translating the device
> > I think tdxc is not a good name since "TDX Connect" is not preferred as
> > a technical term. These APIs would be used by x86/tdx, so can we at
> > least avoid using tdxc for these APIs?
>
> I'm open to this. I used the dmar_tdxc_* prefix because the VT-d spec
> calls this feature "TDX Connect Support". Since these are interfaces for
> the tdx-host module, I'm fine with renaming them to dmar_tdx_*.
intel_iommu_tdx_get_params()
intel_iommu_tdx_acquire()
intel_iommu_tdx_release()
?