OpenBSD cvs log

created 2023-09-10T08:06:01Z
begin 2023-09-03T00:00:00Z
end 2023-09-04T00:00:00Z
path src/sys
commits 5

date 2023-09-03T00:03:30Z
author jca
files src/sys/arch/riscv64/riscv64/pmap.c log diff annotate
message pmap_page_protect() should not unmap pages after making them readonly.

This brings riscv64/pmap.c in line with arm64/pmap.c, original fix by
drahn@

ok miod@ kettenis@ mlarkin@

date 2023-09-03T00:15:46Z
author jca
files src/sys/arch/riscv64/riscv64/pmap.c log diff annotate
message Inline PTED_* functions and actually use PTED_WIRED()

As noted by drahn@ the compiler did inline said functions, but it also
provided them as unused symbols.

ok miod@ mlarkin@ kettenis@

date 2023-09-03T00:23:25Z
author jca
files src/sys/arch/riscv64/riscv64/pmap.c log diff annotate
message Adapt tlb flush calls following arm64/pmap.c

1. in pmap_enter() no need to call tlb_flush_page() if we don't actually
insert a pted
2. all callers of pmap_pte_remove() already call tlb_flush_page()

This seems to result in some performance improvement (18mn -> 17mn15)
while building libc on a Hifive Unmatched). Also zap whitespace and
useless comments to further reduce the diff with arm64/pmap.c

ok kettenis@

date 2023-09-03T09:30:43Z
author mlarkin
files src/sys/arch/amd64/amd64/identcpu.c log diff annotate
src/sys/arch/amd64/amd64/vmm_machdep.c log diff annotate
src/sys/arch/amd64/include/specialreg.h log diff annotate
src/sys/arch/amd64/include/vmmvar.h log diff annotate
message vmm(4): Suppress AMD HwPstate visibility to guests

On newer Ryzen/EPYC, we need to hide the HwPstate CPUID 80000007:EDX
field for HwPstate, or guests will try to access the MSRs associated
with those, and that will fail with #GP.

ok deraadt

date 2023-09-03T21:37:17Z
author bluhm
files src/sys/netinet/tcp_input.c log diff annotate
message Avoid a useless increment and decrement of the tcp syn cache refcount
by unexpanding the SYN_CACHE_TIMER_ARM() macro in the timer callback.
OK mvs@