Page MenuHomeFreeBSD

Perform TLB invalidation before acquiring the PV list lock in pmap_enter()
ClosedPublic

Authored by alc on Jan 3 2020, 8:41 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Oct 15, 10:43 PM
Unknown Object (File)
Wed, Oct 15, 10:43 PM
Unknown Object (File)
Wed, Oct 15, 10:43 PM
Unknown Object (File)
Wed, Oct 15, 12:17 PM
Unknown Object (File)
Sep 18 2025, 12:00 AM
Unknown Object (File)
Aug 16 2025, 8:45 AM
Unknown Object (File)
Jul 28 2025, 5:43 PM
Unknown Object (File)
Jul 28 2025, 1:35 PM
Subscribers

Details

Summary

When a copy-on-write fault occurs, pmap_enter() is called to replace the mapping to the old read-only page with a mapping to the new read-write page. To destroy the old mapping, pmap_enter() destroys its page table and PV entries and invalidates its TLB entry. This change is intended to reduce the time that the PV list lock is held by performing the TLB invalidation a little earlier, in particular, before the PV list lock is acquired.

Diff Detail

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