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)
Wed, Apr 23, 10:55 PM
Unknown Object (File)
Fri, Apr 18, 4:08 PM
Unknown Object (File)
Sat, Apr 12, 1:02 AM
Unknown Object (File)
Mar 12 2025, 12:04 PM
Unknown Object (File)
Feb 24 2025, 1:34 PM
Unknown Object (File)
Feb 5 2025, 4:20 AM
Unknown Object (File)
Feb 5 2025, 3:37 AM
Unknown Object (File)
Feb 4 2025, 10:31 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