Page MenuHomeFreeBSD

rangeset: add next() for iteration
ClosedPublic

Authored by dougm on Thu, Jun 6, 9:02 AM.
Tags
None
Referenced Files
F87103431: D45511.id139550.diff
Sat, Jun 29, 10:02 AM
F87068567: D45511.id139592.diff
Fri, Jun 28, 10:26 PM
Unknown Object (File)
Thu, Jun 27, 5:59 PM
Unknown Object (File)
Thu, Jun 27, 4:32 PM
Unknown Object (File)
Thu, Jun 27, 4:01 PM
Unknown Object (File)
Tue, Jun 25, 1:54 AM
Unknown Object (File)
Tue, Jun 25, 1:18 AM
Unknown Object (File)
Wed, Jun 12, 4:05 AM
Subscribers

Details

Summary

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 to avoid walking a page at a time over pages in no range.

Test Plan

A kernel builds and boots.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

dougm requested review of this revision.Thu, Jun 6, 9:02 AM
dougm created this revision.

Make similar changes for arm64.

sys/arm64/arm64/pmap.c
9296

Shouldn't we use va here?

dougm marked an inline comment as done.

Fix lazy editting observed by @andrew

sys/arm64/arm64/pmap.c
9296

Yep.

Typos abound. Squashed another.

This revision is now accepted and ready to land.Thu, Jun 6, 2:32 PM
This revision was automatically updated to reflect the committed changes.

@kib Do you have any PKU test programs that could be run to check this?

In D45511#1038472, @alc wrote:

@kib Do you have any PKU test programs that could be run to check this?

Specifically to check this patch, probably not. Existing PKRU tests were imported as tools/test/stress2/misc/pkru.sh and pkru2.sh.