Page MenuHomeFreeBSD

amd64 pmap: preset A and M bits for pmap_qenter() mappings
ClosedPublic

Authored by kib on Jan 6 2022, 11:09 PM.
Tags
None
Referenced Files
Unknown Object (File)
Feb 12 2024, 9:03 PM
Unknown Object (File)
Dec 22 2023, 5:41 PM
Unknown Object (File)
Dec 20 2023, 6:39 AM
Unknown Object (File)
Dec 12 2023, 7:03 AM
Unknown Object (File)
Aug 16 2023, 2:55 AM
Unknown Object (File)
Aug 16 2023, 2:20 AM
Unknown Object (File)
Jul 11 2023, 11:37 PM
Unknown Object (File)
May 31 2023, 2:54 PM
Subscribers

Details

Summary
This removes one or two atomic update of the pte on access. Also it
makes the pte constant during its lifecycle.

Diff Detail

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

Event Timeline

kib requested review of this revision.Jan 6 2022, 11:09 PM
alc added inline comments.
sys/amd64/amd64/pmap.c
3900–3901

Here too?

3912–3913

Here too?

P.S. If you decide to update pmap_kenter{,_attr}(), please pick one ordering for the flags and use it consistently.

This revision is now accepted and ready to land.Jan 6 2022, 11:48 PM
kib marked 2 inline comments as done.

Handle kenter. Unify pte bits order in kenter/qenter.

This revision now requires review to proceed.Jan 7 2022, 12:01 AM
This revision is now accepted and ready to land.Jan 7 2022, 12:05 AM

As an aside, I just verified that arm64 is already setting the equivalent bits.