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)
Sat, Nov 29, 10:03 PM
Unknown Object (File)
Thu, Nov 27, 4:56 PM
Unknown Object (File)
Tue, Nov 25, 6:21 PM
Unknown Object (File)
Nov 6 2025, 3:47 PM
Unknown Object (File)
Nov 5 2025, 5:58 AM
Unknown Object (File)
Nov 4 2025, 11:20 AM
Unknown Object (File)
Oct 31 2025, 11:18 AM
Unknown Object (File)
Oct 31 2025, 6:20 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