On Wed, Oct 16, 2024 at 11:39 AM Shakeel Butt <shakeel.butt@xxxxxxxxx> wrote: > > Ccing couple more folks who are doing similar work (ASI, guest_memfd) > > Folks, what is the generic way to check if a given mapping has folios > unmapped from kernel address space? I suppose you mean specifically if a folio is not mapped in the direct map, because a folio can also be mapped in other regions of the kernel address space (e.g. vmalloc).