HomeFreeBSD

pmap_demote_{l2,pde}: never invalidate wired mappings

Description

pmap_demote_{l2,pde}: never invalidate wired mappings

Rather than demoting a superpage mapping that hasn't been accessed, we
ordinarily invalidate it. However, if the mapping is wired,
invalidation is problematic because the page fault to reinstantiate the
mapping could sleep. Instead, demote the wired mapping with the
accessed flag cleared in the PTEs.

(cherry picked from commit 7502c1f270827434bb9661cbb4b9652fdb836521)

Details

Provenance
alcAuthored on Jul 19 2025, 8:18 PM
Parents
rGf406b54c806a: pmap_enter_{l2,pde}: correct the handling of an error case
Branches
Unknown
Tags
Unknown