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)
Fri, Mar 22, 6:43 PM
Unknown Object (File)
Jan 12 2024, 6:37 AM
Unknown Object (File)
Dec 20 2023, 4:52 AM
Unknown Object (File)
Dec 12 2023, 12:51 PM
Unknown Object (File)
Dec 4 2023, 6:34 AM
Unknown Object (File)
Nov 11 2023, 7:36 PM
Unknown Object (File)
Aug 7 2023, 4:32 PM
Unknown Object (File)
Jul 4 2023, 9:25 PM
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