Re: [PATCH v4 2/5] rust: mm: add VmaRef::size() and VmaRef::pgoff()
From: Alice Ryhl
Date: Wed Dec 02 2026 - 17:22:57 EST
On Fri, Nov 27, 2026 at 02:49:14PM -0800, Simon Song wrote:
> The forthcoming VFIO PCI abstraction needs VMA page offsets and byte
> lengths for mapping bounds checks. Keeping these queries on VmaRef
> confines unsafe field access to the MM abstraction and avoids repeated
> length calculations in callers.
>
> Suggested-by: Danilo Krummrich <dakr@xxxxxxxxxx>
> Signed-off-by: Simon Song <xinmengs@xxxxxxxxxx>
Looks good to me!
Acked-by: Alice Ryhl <aliceryhl@xxxxxxxxxx>
Alice