Drop PTE check in pmap_fault_fixup(). Since pmap_enter() doesn't
authorkettenis <kettenis@openbsd.org>
Sun, 16 May 2021 17:41:30 +0000 (17:41 +0000)
committerkettenis <kettenis@openbsd.org>
Sun, 16 May 2021 17:41:30 +0000 (17:41 +0000)
commitbeaec7f140cb4d674f26f1bdb850a4abe4a32b7c
tree86b13a764996b2a771b4116ecd4522a450d5e87f
parent94ffa4e95910efd870ef58e9e76331d77476447b
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.

ok patrick@, drahn@
sys/arch/arm64/arm64/pmap.c