HomeFreeBSD

amd64 pmap: preallocate pt page for pmap_demote_pdpe() in pmap_demote_DMAP()

Description

amd64 pmap: preallocate pt page for pmap_demote_pdpe() in pmap_demote_DMAP()

Allocate the page outside the kernel_pmap locked region with waiting,
and pass it to pmap_demote_pdpe() to use as pt page, instead of panicing
if VM_ALLOC_INTERRUPT failing.

Reviewed by: alc, markj
Tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D50970

Details

Provenance
kibAuthored on Jun 22 2025, 3:38 AM
Reviewer
alc
Differential Revision
D50970: amd64 pmap: eliminate two explicit panics on low mem conditions
Parents
rGca554a7dea3f: dev/mem: use sx instead of rw lock
Branches
Unknown
Tags
Unknown