Drop PTE check in pmap_fault_fixup(). Since pmap_enter() doesn't
authorjca <jca@openbsd.org>
Sun, 24 Sep 2023 18:49:29 +0000 (18:49 +0000)
committerjca <jca@openbsd.org>
Sun, 24 Sep 2023 18:49:29 +0000 (18:49 +0000)
commitff9b32b90760849db29e606a8acc9cdc3fe698ec
tree3e7c4770881203b84bf9f0b00b052affdee70938
parentddfcdedf7db27df940f993d0957c27e3636cf80f
Drop PTE check in pmap_fault_fixup().  Since pmap_enter() doesn't
add PTE's for pages that haven't been accessed yet, the check would
skip the fixup on such pages and force us to go through uvm_fault()
just for the sake of MOD/REF bit emulation.  Since we already check
the PTE descriptor, dropping the check should be safe.  Doing so
gives us a nice 10% performance gain when building a kernel.

Original commit for arch/arm64/arm64/pmap.c:
date: 2021/05/16 17:41:30;  author: kettenis;  state: Exp;  lines: +1 -8;  commitid: yBzyZzIKRLyAkuDY;

ok drahn@ kettenis@
sys/arch/riscv64/riscv64/pmap.c