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)
Fri, Apr 26, 1:57 AM
Unknown Object (File)
Mar 26 2024, 10:14 PM
Unknown Object (File)
Dec 20 2023, 2:12 AM
Unknown Object (File)
Nov 9 2023, 5:33 PM
Unknown Object (File)
Oct 8 2023, 4:29 PM
Unknown Object (File)
Jul 21 2023, 11:50 PM
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