Page MenuHomeFreeBSD

amd_idpgtbl: use page iterator instead of vm_page_next
ClosedPublic

Authored by dougm on Apr 18 2025, 4:08 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Apr 9, 6:56 AM
Unknown Object (File)
Thu, Apr 9, 2:18 AM
Unknown Object (File)
Mon, Apr 6, 4:11 AM
Unknown Object (File)
Wed, Apr 1, 7:34 PM
Unknown Object (File)
Wed, Apr 1, 12:27 AM
Unknown Object (File)
Sat, Mar 21, 2:03 PM
Unknown Object (File)
Feb 5 2026, 11:01 PM
Unknown Object (File)
Jan 31 2026, 3:34 AM
Subscribers

Details

Summary

Use VM_RADIX_FORALL instead of vm_page_next in a loop in amdiommu_domain_free_pgtbl.

Diff Detail

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

Event Timeline

dougm requested review of this revision.Apr 18 2025, 4:08 PM
dougm created this revision.

Now that I look at the actual use of VM_RADIX_* macros, I think that it is better to require callers to take the pointer to iterator instead of doing it in macro itself. I.e. it would be VM_RADIX_FORALL(m, &pages); which is more natural C.

This revision is now accepted and ready to land.Apr 18 2025, 4:15 PM