Re: [PATCHv2 07/12] KVM: TDX: Preallocate PAMT pages to be used in page fault path

From: Huang, Kai
Date: Thu Jun 26 2025 - 07:22:37 EST


On Mon, 2025-06-09 at 22:13 +0300, Kirill A. Shutemov wrote:
> Preallocate a page to be used in the link_external_spt() and
> set_external_spte() paths.

"a page" -> "required PAMT pages"?

>
> In the worst-case scenario, handling a page fault might require a
> tdx_nr_pamt_pages() pages for each page table level.

"a tdx_nr_pamt_pages() pages" -> "tdx_nr_pamt_pages() pages".