From: Baolu Lu <baolu.lu@linux.intel.com>
To: "Edgecombe, Rick P" <rick.p.edgecombe@intel.com>,
"yilun.xu@linux.intel.com" <yilun.xu@linux.intel.com>
Cc: baolu.lu@linux.intel.com, "Gao, Chao" <chao.gao@intel.com>,
"jgg@ziepe.ca" <jgg@ziepe.ca>, "x86@kernel.org" <x86@kernel.org>,
"kas@kernel.org" <kas@kernel.org>,
"binbin.wu@linux.intel.com" <binbin.wu@linux.intel.com>,
"iommu@lists.linux.dev" <iommu@lists.linux.dev>,
"Li, Xiaoyao" <xiaoyao.li@intel.com>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"kvm@vger.kernel.org" <kvm@vger.kernel.org>,
"Tian, Kevin" <kevin.tian@intel.com>,
"linux-coco@lists.linux.dev" <linux-coco@lists.linux.dev>
Subject: Re: [PATCH v3 3/9] x86/virt/tdx: Export Dynamic PAMT helpers to tdx-host
Date: Tue, 24 Nov 2026 14:07:00 +0800 [thread overview]
Message-ID: <9e7e8ed4-8f42-418e-831f-293614ef517d@linux.intel.com> (raw)
In-Reply-To: <305d702ec6b5ef383115d3da9767df1ea6860da8.camel@intel.com>
On 11/24/2026 12:28 AM, Edgecombe, Rick P wrote:
> On Mon, 2026-11-23 at 18:25 +0800, Xu Yilun wrote:
>> On Thu, Nov 12, 2026 at 12:30:48PM +0800, Lu Baolu wrote:
>>> With Dynamic PAMT, any page handed to the TDX module needs PAMT backing
>>> first, via tdx_pamt_get(), and must drop it with tdx_pamt_put() once the
>>> TDX module gives the page back. Besides KVM, the tdx-host driver now
>>> hands pages to the TDX module: the IOMMU_MT pages for TDH.IOMMU.SETUP.
>>>
>>> Export the two helpers to tdx-host as well. A symbol can only be
>>> exported once, so replace EXPORT_SYMBOL_FOR_KVM() with an explicit list.
>>> Only kvm-intel calls these helpers in KVM.
>>
>> We are seeking for some simplified intial implementation without DPAMT
>> for TDX huge page feature. So we could also drop DPAMT support for TDX
>> Trusted I/O currently.
>>
>> As an temporary solution, we can disable TDX Trusted I/O if DPAMT is on.
>>
>> for example:
>>
>> static inline bool tdx_supports_trusted_io(const struct tdx_sys_info *sysinfo)
>> {
>> if (tdx_supports_dynamic_pamt(sysinfo))
>> return false;
>>
>> ...
>> }
>
> Yes, let's try to make DPAMT support optional for the initial upstream TDX
> connect target. We can add support for it in follow on patches and keep the
> initial code sets smaller. In order to facilitate this, we need to add a kernel
> param to control enabling DPAMT. I will send a patch soon.
Sounds good. I'll temperately drop the DPAMT support in the next
version.
Thanks,
baolu
next prev parent reply other threads:[~2026-11-24 6:12 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-12 4:30 [PATCH v3 0/9] coco/tdx-host: Introduce trusted DMA initialization support Lu Baolu
2026-11-12 4:30 ` [PATCH v3 1/9] x86/virt/tdx: Add SEAMCALL wrappers for IOMMU setup/clear Lu Baolu
2026-11-18 11:02 ` Binbin Wu
2026-11-23 4:03 ` Baolu Lu
2026-11-23 9:55 ` Xu Yilun
2026-11-24 5:46 ` Baolu Lu
2026-11-12 4:30 ` [PATCH v3 2/9] x86/virt/tdx: Read global metadata for trusted IOMMU Lu Baolu
2026-11-18 13:39 ` Binbin Wu
2026-11-23 4:09 ` Baolu Lu
2026-11-12 4:30 ` [PATCH v3 3/9] x86/virt/tdx: Export Dynamic PAMT helpers to tdx-host Lu Baolu
2026-11-23 10:25 ` Xu Yilun
2026-11-23 16:28 ` Edgecombe, Rick P
2026-11-24 6:07 ` Baolu Lu [this message]
2026-11-12 4:30 ` [PATCH v3 4/9] iommu/vt-d: Add interface for tdx-host when enabling trusted DMA Lu Baolu
2026-11-23 15:08 ` Xu Yilun
2026-11-12 4:30 ` [PATCH v3 5/9] iommu/vt-d: Block GCMD and ECMD while acquired by the TDX module Lu Baolu
2026-11-12 4:30 ` [PATCH v3 6/9] iommu/vt-d: Refuse system suspend " Lu Baolu
2026-11-12 4:30 ` [PATCH v3 7/9] coco/tdx-host: Add skeleton to support PCI link encryption Lu Baolu
2026-11-18 7:16 ` Chao Gao
2026-11-23 3:30 ` Baolu Lu
2026-11-23 15:26 ` Xu Yilun
2026-11-19 2:52 ` Binbin Wu
2026-11-23 4:18 ` Baolu Lu
2026-11-23 15:43 ` Xu Yilun
2026-11-12 4:30 ` [PATCH v3 8/9] coco/tdx-host: Rename tdx-host.c to main.c Lu Baolu
2026-11-12 4:30 ` [PATCH v3 9/9] coco/tdx-host: Enable trusted DMA on IOMMUs on device connect Lu Baolu
2026-11-18 8:11 ` Chao Gao
2026-11-23 4:51 ` Baolu Lu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=9e7e8ed4-8f42-418e-831f-293614ef517d@linux.intel.com \
--to=baolu.lu@linux.intel.com \
--cc=binbin.wu@linux.intel.com \
--cc=chao.gao@intel.com \
--cc=iommu@lists.linux.dev \
--cc=jgg@ziepe.ca \
--cc=kas@kernel.org \
--cc=kevin.tian@intel.com \
--cc=kvm@vger.kernel.org \
--cc=linux-coco@lists.linux.dev \
--cc=linux-kernel@vger.kernel.org \
--cc=rick.p.edgecombe@intel.com \
--cc=x86@kernel.org \
--cc=xiaoyao.li@intel.com \
--cc=yilun.xu@linux.intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox