Re: [PATCH v3] io: add io_pgtable abstraction
From: Boris Brezillon
Date: Wed Nov 19 2025 - 05:53:22 EST
On Wed, 12 Nov 2025 09:57:09 -0300
Daniel Almeida <daniel.almeida@xxxxxxxxxxxxx> wrote:
> > + /// Unmap a range of virtually contiguous pages of the same size.
> > + ///
> > + /// # Safety
> > + ///
> > + /// This page table must contain a mapping at `iova` that consists of exactly `pgcount` pages
> > + /// of size `pgsize`.
>
> Same here. I don’t think the above is necessarily a requirement.
It's not, indeed, the returned size will tell you how much was unmapped
if there's less to unmap, or the region has holes.