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)
Tue, Jul 28, 8:06 AM
Unknown Object (File)
Jun 5 2026, 5:41 PM
Unknown Object (File)
May 18 2026, 1:14 AM
Unknown Object (File)
May 16 2026, 1:51 AM
Unknown Object (File)
May 16 2026, 1:51 AM
Unknown Object (File)
May 16 2026, 1:50 AM
Unknown Object (File)
May 15 2026, 11:18 PM
Unknown Object (File)
May 8 2026, 11:07 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