Re: [PATCH v6 04/11] x86/virt/tdx: Allocate ref counts for Dynamic PAMT memory
From: Edgecombe, Rick P
Date: Tue Jul 07 2026 - 18:33:09 EST
On Tue, 2026-07-07 at 12:53 +0800, Yan Zhao wrote:
> On Mon, May 25, 2026 at 07:35:08PM -0700, Rick Edgecombe wrote:
> > From: "Kirill A. Shutemov" <kirill.shutemov@xxxxxxxxxxxxxxx>
> >
> > The PAMT memory holds metadata for all possible TDX protected memory. Each
> > physical address range is covered by PAMT entries at three levels (1GB,
> > 2MB, 4KB). With Dynamic PAMT, the 4KB range of PAMT is allocated on
> ^level ?
> > demand. The kernel supplies the TDX module with page pairs to store the
> > 4KB entries, which cover 2MB of host physical memory. The kernel must
> 4KB-level entries ?
Sure.
>
> > provide this page pair before using pages from the range for TDX. If this
> > is not done, SEAMCALLs that give the pages to be protected by the TDX module
> Nit: > 75 chars per line.
Oh yea, must have been a late change.
>
> Reviewed-by: Yan Zhao <yan.y.zhao@xxxxxxxxx>