mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Only promote userspace mappings to superpages. This was dropped in r328510,
however due to the break-before-make requirement on arm64 is is currently unsafe to promote kernel pages. Sponsored by: DARPA, AFRL
This commit is contained in:
parent
c201b5644d
commit
faa3fd222a
1 changed files with 7 additions and 6 deletions
|
|
@ -3076,12 +3076,13 @@ validate:
|
|||
}
|
||||
|
||||
#if VM_NRESERVLEVEL > 0
|
||||
if ((mpte == NULL || mpte->wire_count == NL3PG) &&
|
||||
pmap_superpages_enabled() &&
|
||||
(m->flags & PG_FICTITIOUS) == 0 &&
|
||||
vm_reserv_level_iffullpop(m) == 0) {
|
||||
pmap_promote_l2(pmap, pde, va, &lock);
|
||||
}
|
||||
if (pmap != pmap_kernel() &&
|
||||
(mpte == NULL || mpte->wire_count == NL3PG) &&
|
||||
pmap_superpages_enabled() &&
|
||||
(m->flags & PG_FICTITIOUS) == 0 &&
|
||||
vm_reserv_level_iffullpop(m) == 0) {
|
||||
pmap_promote_l2(pmap, pde, va, &lock);
|
||||
}
|
||||
#endif
|
||||
|
||||
if (lock != NULL)
|
||||
|
|
|
|||
Loading…
Reference in a new issue