Page MenuHomeFreeBSD

Disable promotion on pcpu memory on arm64
ClosedPublic

Authored by andrew on Jun 8 2022, 2:05 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Aug 3, 9:11 AM
Unknown Object (File)
Sun, Aug 2, 4:11 AM
Unknown Object (File)
Tue, Jul 28, 5:22 PM
Unknown Object (File)
Sun, Jul 26, 10:30 AM
Unknown Object (File)
Tue, Jul 21, 2:44 PM
Unknown Object (File)
Sat, Jul 18, 3:56 PM
Unknown Object (File)
Jul 4 2026, 12:16 AM
Unknown Object (File)
Jul 2 2026, 4:28 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
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable