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)
Wed, Oct 1, 9:03 PM
Unknown Object (File)
Aug 20 2025, 1:14 AM
Unknown Object (File)
Aug 9 2025, 10:37 AM
Unknown Object (File)
Aug 5 2025, 12:55 PM
Unknown Object (File)
Aug 2 2025, 1:33 PM
Unknown Object (File)
Jul 22 2025, 5:36 PM
Unknown Object (File)
Jul 7 2025, 4:09 AM
Unknown Object (File)
Jul 2 2025, 10:30 PM
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