Page MenuHomeFreeBSD

Three enhancements to arm64's pmap_protect()

Authored by alc on Jun 15 2019, 8:42 PM.



Implement protection changes on superpage mappings. Previously, a superpage mapping was unconditionally demoted by pmap_protect(), even if the protection change applied to the entire superpage mapping.

Precompute the bit mask describing the protection changes rather than recomputing it for every page table entry that is changed.

Skip page table entries that already have the requested protection changes in place.

Diff Detail

rS FreeBSD src repository
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

alc created this revision.Jun 15 2019, 8:42 PM
kib accepted this revision.Jun 15 2019, 9:17 PM
This revision is now accepted and ready to land.Jun 15 2019, 9:17 PM
andrew accepted this revision.Jun 16 2019, 12:53 PM
This revision was automatically updated to reflect the committed changes.