OpenBSD cvs log

created 2023-02-07T16:54:10Z
begin 2023-01-30T00:00:00Z
end 2023-01-31T00:00:00Z
path src/sys
commits 8

date 2023-01-30T00:10:39Z
author deraadt
files src/sys/arch/amd64/amd64/pmap.c log diff annotate
message We have determined that enough HV have correct PKU handling now,
so don't be paranoid about it anymore. What does this mean? If the HV
above you is broken, userland programs in the guest could crash, the guest
might even be quite unusable. So fix the hypervisor. The best way to
raise the bar on hypervisor quality is for guests to behave like they
are on a real machine, and then sucky hypervisors have to get fixed.
ps. if using vmd as your hypervisor, use syspatch...

date 2023-01-30T02:32:01Z
author dv
files src/sys/arch/amd64/amd64/vmm.c log diff annotate
src/sys/arch/amd64/include/cpufunc.h log diff annotate
src/sys/arch/amd64/include/vmmvar.h log diff annotate
message vmm(4): save and restore guest pkru.

Take a simple approach for saving and restoring PKRU if the host
has PKE support enabled. Uses explicit rdpkru/wrpkru instructions
for now instead of xsave.

This functionality is still gated behind amd64 pmap checking for
operation under a hypervisor as well as vmm masking the cpuid bit
for PKU.

"if your diff is good, then commit it" -deraadt@

date 2023-01-30T03:31:59Z
author visa
files src/sys/net/if_pppx.c log diff annotate
message Replace selwakeup() with KNOTE() in pppac(4) and pppx(4)

Use the same mutex for read and write side klists. It would be overkill
to have dedicated locks.

Remove klist_invalidate() from pppacclose() because pppac(4) does not
have forced device detach. When the close routine gets called, there
should be no open file descriptors pointing the device, and consequently
the klists should be empty.

OK mvs@

date 2023-01-30T10:49:04Z
author jsg
files src/sys/arch/i386/i386/acpi_machdep.c log diff annotate
src/sys/arch/i386/i386/acpiapm.c log diff annotate
src/sys/arch/i386/i386/amdmsr.c log diff annotate
src/sys/arch/i386/i386/apic.c log diff annotate
src/sys/arch/i386/i386/apm.c log diff annotate
src/sys/arch/i386/i386/autoconf.c log diff annotate
src/sys/arch/i386/i386/bios.c log diff annotate
src/sys/arch/i386/i386/bus_dma.c log diff annotate
src/sys/arch/i386/i386/bus_space.c log diff annotate
src/sys/arch/i386/i386/conf.c log diff annotate
src/sys/arch/i386/i386/cpu.c log diff annotate
message remove unneeded includes in arch/i386
ok krw@ miod@

date 2023-01-30T10:49:05Z
author jsg
files src/sys/arch/i386/i386/db_interface.c log diff annotate
src/sys/arch/i386/i386/db_mp.c log diff annotate
src/sys/arch/i386/i386/db_trace.c log diff annotate
src/sys/arch/i386/i386/esm.c log diff annotate
src/sys/arch/i386/i386/est.c log diff annotate
src/sys/arch/i386/i386/gdt.c log diff annotate
src/sys/arch/i386/i386/hibernate_machdep.c log diff annotate
src/sys/arch/i386/i386/i686_mem.c log diff annotate
src/sys/arch/i386/i386/ioapic.c log diff annotate
src/sys/arch/i386/i386/ipifuncs.c log diff annotate
src/sys/arch/i386/i386/k1x-pstate.c log diff annotate
src/sys/arch/i386/i386/k6_mem.c log diff annotate
src/sys/arch/i386/i386/lapic.c log diff annotate
src/sys/arch/i386/i386/longrun.c log diff annotate
src/sys/arch/i386/i386/machdep.c log diff annotate
src/sys/arch/i386/i386/mainbus.c log diff annotate
src/sys/arch/i386/i386/mem.c log diff annotate
src/sys/arch/i386/i386/mpbios.c log diff annotate
src/sys/arch/i386/i386/nvram.c log diff annotate
src/sys/arch/i386/i386/pctr.c log diff annotate
src/sys/arch/i386/i386/pmap.c log diff annotate
src/sys/arch/i386/i386/pmapae.c log diff annotate
src/sys/arch/i386/i386/powernow-k7.c log diff annotate
src/sys/arch/i386/i386/powernow-k8.c log diff annotate
src/sys/arch/i386/i386/process_machdep.c log diff annotate
src/sys/arch/i386/i386/rbus_machdep.c log diff annotate
src/sys/arch/i386/i386/sys_machdep.c log diff annotate
src/sys/arch/i386/i386/trap.c log diff annotate
src/sys/arch/i386/i386/vm_machdep.c log diff annotate
src/sys/arch/i386/i386/wscons_machdep.c log diff annotate
src/sys/arch/i386/isa/clock.c log diff annotate
src/sys/arch/i386/isa/isapnp_machdep.c log diff annotate
src/sys/arch/i386/isa/joy.c log diff annotate
src/sys/arch/i386/isa/joy_isapnp.c log diff annotate
src/sys/arch/i386/isa/npx.c log diff annotate
src/sys/arch/i386/pci/agp_machdep.c log diff annotate
src/sys/arch/i386/pci/ali1543.c log diff annotate
src/sys/arch/i386/pci/amd756.c log diff annotate
src/sys/arch/i386/pci/glxsb.c log diff annotate
src/sys/arch/i386/pci/gscpcib.c log diff annotate
src/sys/arch/i386/pci/ichpcib.c log diff annotate
src/sys/arch/i386/pci/opti82c558.c log diff annotate
src/sys/arch/i386/pci/opti82c700.c log diff annotate
src/sys/arch/i386/pci/pchb.c log diff annotate
src/sys/arch/i386/pci/pci_addr_fixup.c log diff annotate
src/sys/arch/i386/pci/pci_bus_fixup.c log diff annotate
src/sys/arch/i386/pci/pci_intr_fixup.c log diff annotate
src/sys/arch/i386/pci/piix.c log diff annotate
src/sys/arch/i386/pci/rccosb4.c log diff annotate
src/sys/arch/i386/pci/sis85c503.c log diff annotate
src/sys/arch/i386/pci/vga_post.c log diff annotate
src/sys/arch/i386/pci/via8231.c log diff annotate
src/sys/arch/i386/pci/via82c586.c log diff annotate
message remove unneeded includes in arch/i386
ok krw@ miod@

date 2023-01-30T11:21:26Z
author deraadt
files src/sys/arch/amd64/amd64/pmap.c log diff annotate
message part of a future diff snuck into the previous commit

date 2023-01-30T14:05:36Z
author dv
files src/sys/arch/amd64/amd64/vmm.c log diff annotate
message vmm(4): expose PKU cpuid bit if in use on host.

We are using {rd,wr}pkru instructions for saving and restoring the
PKRU, so tie the exposure of PKU feature bit to vmm having the
ability to properly handle the guest state.

date 2023-01-30T20:05:31Z
author kettenis
files src/sys/arch/arm64/arm64/cpu.c log diff annotate
message Rework cpu_init_secondary() such that it can be used for both the initial
powerup and for wakeup from deeper sleep states.

Adjust cpu_suspen_primary() to use pmap_extract() to find the physical
address of the entry point and struct cpu_info.

ok phessler@