Ensure pmap_create() waits in case kernel virtual space shortage.
authormpi <mpi@openbsd.org>
Thu, 30 May 2024 10:56:24 +0000 (10:56 +0000)
committermpi <mpi@openbsd.org>
Thu, 30 May 2024 10:56:24 +0000 (10:56 +0000)
commit63f8896919fdfd2d0686bc7d7ffb74620f295415
tree3d12e0231180994a4be6c94bc6a1ddc07f8aab1e
parent6540267578fc4f09290439f592ae104eca637e2b
Ensure pmap_create() waits in case kernel virtual space shortage.

Prevents a panic in pmap_pinit_pd_pae() when applying a lot of memory
pressure and the kernel needs time to recover while swapping.

Reported and fix tested by mvs@, also tested by sthen@

ok mlarkin@, mvs@, kettenis@
sys/arch/i386/i386/pmapae.c