HomeFreeBSD

rangeset: add next() iteration

Description

rangeset: add next() iteration

Add a method rangeset_next to find the first range that starts at or
after a given value. Use it to rewrite pmap_pkru_same and
pmap_bti_same to avoid walking a page at a time over pages in no
range.

Reviewed by: andrew, kib
Differential Revision: https://reviews.freebsd.org/D45511

Details

Provenance
dougmAuthored on Jun 6 2024, 6:42 PM
Reviewer
andrew
Differential Revision
D45511: rangeset: add next() for iteration
Parents
rG1b13e36fcc00: vm_page_insert: use pctrie combined insert/lookup
Branches
Unknown
Tags
Unknown