Page MenuHomeFreeBSD

Disable promotion on pcpu memory on arm64
ClosedPublic

Authored by andrew on Jun 8 2022, 2:05 PM.
Tags
None
Referenced Files
F142948615: D35434.id54425.diff
Sat, Jan 24, 9:37 PM
Unknown Object (File)
Mon, Dec 29, 12:41 AM
Unknown Object (File)
Sun, Dec 28, 12:59 PM
Unknown Object (File)
Dec 25 2025, 9:27 PM
Unknown Object (File)
Dec 7 2025, 2:06 PM
Unknown Object (File)
Nov 25 2025, 11:25 PM
Unknown Object (File)
Nov 22 2025, 3:17 PM
Unknown Object (File)
Nov 21 2025, 4:30 AM
Subscribers

Details

Summary

We need to be careful to not promote or demote the memory containing
the per-CPU structures as the exception handlers will dereference it
so any time it's invalid may cause recursive exceptions.

Add a new pmap function to set a flag in the pte marking memory that
cannot be promoted or demoted and use it to mark pcpu memory.

Test Plan

Alternative to D35084

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 45910
Build 42798: arc lint + arc unit