Page MenuHomeFreeBSD

Tweaks for pmap_qremove() and transient mappings
ClosedPublic

Authored by kib on Nov 23 2024, 9:07 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Jan 1, 3:58 AM
Unknown Object (File)
Tue, Dec 31, 4:20 AM
Unknown Object (File)
Mon, Dec 30, 3:03 AM
Unknown Object (File)
Sun, Dec 29, 2:56 AM
Unknown Object (File)
Sat, Dec 28, 3:30 AM
Unknown Object (File)
Dec 27 2024, 7:26 AM
Unknown Object (File)
Dec 20 2024, 6:13 PM
Unknown Object (File)
Dec 6 2024, 5:20 AM
Subscribers

Details

Summary
amd64: switch pmap_map_io_transient() to use pmap_kenter_attr()

instead of constructing transient pte itself.  This pre-set PG_A and
PG_M bits, avoiding atomic pte update on access and modification.  Also
it set the nx bit, the mapping is not supposed to be used for executing.

amd64 pmap: assert and explain why pmap_qremove() is safe WRT supermappings

Based on alc@ comments from https://reviews.freebsd.org/D47678.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable