OpenBSD cvs log

created 2024-11-04T16:25:18Z
begin 2024-10-29T00:00:00Z
end 2024-10-30T00:00:00Z
path src/sys
commits 8

date 2024-10-29T03:17:10Z
author jsg
files src/sys/sys/disklabel.h log diff annotate
message remove unused DPSECT DPCYL defines; ok deraadt@

date 2024-10-29T08:23:07Z
author mpi
files src/sys/uvm/uvm_glue.h log diff annotate
message Change uvm_swapout_threads() to return the amound of freed pages.

Note that currently that amount is calculated using the `uvmexp.free' global
and might include pages freed by other threads. A better solution would be
to modify pmap_collect(9) on all architectures that support it to return the
number of reclaimed pages.

ok kettenis@

date 2024-10-29T08:42:05Z
author sf
files src/sys/dev/pci/virtio_pci.c log diff annotate
message virtio_pci: Negotiate ACCESS_PLATTFORM feature

Accepting VIRTIO_F_ACCESS_PLATFORM is required for SEV on KVM/qemu.

We always use the standard pci access mechanisms of the
architecture/platform we are running on. Therefore we should negotiate
the VIRTIO_F_ACCESS_PLATFORM feature if it is offered. Strictly
speaking we should bypass any existing IOMMUs if the host does not offer
this feature, but this no regression and can be fixed later.

feedback from kettenis@

date 2024-10-29T12:40:17Z
author jsg
files src/sys/sys/disk.h log diff annotate
src/sys/sys/pledge.h log diff annotate
src/sys/sys/protosw.h log diff annotate
src/sys/sys/syscall_mi.h log diff annotate
message remove unneeded includes

date 2024-10-29T21:16:36Z
author bluhm
files src/sys/dev/ic/psp.c log diff annotate
src/sys/dev/ic/pspvar.h log diff annotate
message Move psp(4) initialization from attach to device open.

In preparation for automatic loading of the AMD SEV firmware, factor
out the code that initializes the PSP. As the firmware must be
loaded before the initialization, delay initialization to first use
of the PSP. Initialization is triggered by opening /dev/psp for
the first time. A later diff will add firmware loading in a similar
way.
Also provide a ioctl(2) for initialization. Not used right now.
Will be later used by vmd(8) to reset the PSP.

from hshoexer@; OK mlarkin@

date 2024-10-29T21:19:25Z
author kettenis
files src/sys/arch/arm64/dev/aplrtk.c log diff annotate
src/sys/arch/arm64/dev/aplsmc.c log diff annotate
src/sys/arch/arm64/dev/rtkit.c log diff annotate
message We should always set the AP power state, so fold the rtkit_set_ap_pwrstate()
call into rtkit_boot().

ok patrick@, tobhe@

date 2024-10-29T23:25:45Z
author dlg
files src/sys/net/fq_codel.c log diff annotate
message use nsecuptime instead of using nanouptime and doing a bunch of maths.

ok claudio@

date 2024-10-29T23:57:54Z
author dlg
files src/sys/net/hfsc.c log diff annotate
message move hfsc to using nanoseconds for keeping times.

before it was using 256000000 things per second, so this isn't a
huge change, but it can use nsecuptime() to get the time.

kjc and cheloa like it
ok claudio@