Re: [PATCH v4 12/16] x86/virt/tdx: Add helpers to allow for pre-allocating pages

From: Huang, Kai

Date: Tue Jan 20 2026 - 03:01:12 EST


>
> But in the worst-case conditions, we actually need that many.
>
> In the end, the unused pages in cache will be freed by mmu_free_memory_caches().
>
> > And AFAICT unfortunately there's no way to resolve this, unless we use
> So, I don't think it's a problem.
>
> And I agree with Binbin :)
>

Right. Overcharging is not an issue, on the contrary, we need to make
sure there's enough pages so we really need to consider the worst case.

I am not sure what I was thinking :-)