Re: [PATCH v4 14/16] KVM: TDX: Reclaim PAMT memory

From: Edgecombe, Rick P

Date: Wed Nov 26 2025 - 17:58:06 EST


On Wed, 2025-11-26 at 16:53 +0800, Binbin Wu wrote:
> > Add tdx_pamt_put() for memory that comes from guest_memfd and use
> > tdx_free_page() for the rest.
>
> External page table pages are not from guest_memfd,  but tdx_pamt_put() is
> used in tdx_sept_free_private_spt() for them.

Right, this could be "...for pages that are passed from outside of TDX code...