Re: [PATCH bpf-next 0/5] bpf: Expose pinned arenas as sized bpffs files

From: Alexei Starovoitov

Date: Mon Oct 19 2026 - 15:54:55 EST


On Mon, Oct 19, 2026 at 01:44 AM Andrea Righi <arighi@xxxxxxxxxx> wrote:
> That's fine for a single long-running guest, but with VMs coming and
> going the host arena would only grow (this was also Josh's concern about
> the high watermark). Would it be ok with an explicit release of an
> imported range (clear the ptes, flush, set rt_own back, unpin the
> folios)? A BPF prog touching a released range would then hit the usual
> arena fault handling, like any unallocated page.

make sense to me.
In my prototype arena_free_pages() sees the imported range in rt_own.
Instead of returning early it can do the above and
give the range back to rt.