HomeFreeBSD

Disable promotion on pcpu memory on arm64

Description

Disable promotion on pcpu memory on arm64

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.

Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D35434

(cherry picked from commit e3917bb256dea63945b5bef7fe2b792a280fcafe)

Details

Provenance
andrewAuthored on Apr 29 2022, 9:30 AM
Differential Revision
D35434: Disable promotion on pcpu memory on arm64
Parents
rG6810f4f4fee9: arm64: Implement final level only TLB invalidations
Branches
Unknown
Tags
Unknown