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)
Thu, Jan 9, 3:22 AM
Unknown Object (File)
Mon, Jan 6, 5:31 PM
Unknown Object (File)
Nov 12 2024, 7:01 AM
Unknown Object (File)
Nov 4 2024, 4:29 PM
Unknown Object (File)
Oct 18 2024, 8:06 PM
Unknown Object (File)
Oct 16 2024, 5:30 PM
Unknown Object (File)
Oct 5 2024, 8:50 AM
Unknown Object (File)
Oct 5 2024, 4:39 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