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)
Mon, Feb 24, 10:19 AM
Unknown Object (File)
Jan 30 2025, 12:58 AM
Unknown Object (File)
Dec 10 2024, 5:23 AM
Unknown Object (File)
Nov 18 2024, 3:14 AM
Unknown Object (File)
Oct 23 2024, 9:12 AM
Unknown Object (File)
Oct 18 2024, 9:11 AM
Unknown Object (File)
Sep 18 2024, 2:22 AM
Unknown Object (File)
Sep 6 2024, 7:09 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