Page MenuHomeFreeBSD

Avoid needless TLB invalidations in pmap_remove_pages().
ClosedPublic

Authored by markj on Dec 14 2018, 8:07 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Apr 26, 7:25 PM
Unknown Object (File)
Apr 13 2026, 5:29 AM
Unknown Object (File)
Apr 12 2026, 9:10 PM
Unknown Object (File)
Apr 11 2026, 2:18 AM
Unknown Object (File)
Apr 10 2026, 2:45 PM
Unknown Object (File)
Apr 10 2026, 8:46 AM
Unknown Object (File)
Apr 8 2026, 12:15 PM
Unknown Object (File)
Mar 26 2026, 7:01 AM
Subscribers

Details

Summary

pmap_remove_pages() is called during process termination, when it is
guaranteed that no other CPU may access the mappings being torn down.
In particular, it unnecessary to invalidate each mapping individually
since we do a pmap_invalidate_all() at the end of the function.

Also don't call pmap_invalidate_all() while holding a PV list lock, the
global pvh lock is sufficient.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable