Thread (107 messages) 107 messages, 10 authors, 11d ago

Re: [PATCH v6 04/11] x86/virt/tdx: Allocate ref counts for Dynamic PAMT memory

From: "Edgecombe, Rick P" <rick.p.edgecombe@intel.com>
Date: 2026-07-07 22:32:29
Also in: kvm, linux-doc, lkml

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:
quoted
From: "Kirill A. Shutemov" <redacted>

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 ?
quoted
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.
quoted
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 <redacted>
  
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help