OpenBSD cvs log

created 2021-12-11T13:37:56Z
begin 2021-12-04T00:00:00Z
end 2021-12-05T00:00:00Z
path src/sys
commits 3

date 2021-12-04T07:01:59Z
author anton
files src/sys/dev/usb/usb_subr.c log diff annotate
message Consolidate error paths in usbd_new_device, shaving of 14 lines.

ok bluhm@

date 2021-12-04T16:08:02Z
author kettenis
files src/sys/dev/fdt/bcm2711_pcie.c log diff annotate
message Previous diff was incomplete, we also need to do DMA translation for
bus_dmamap_load_raw(9). This fixes xhci(4) on the rpi4 with the
U-Boot from ports that is installed on the arm64 installation media.

ok mglocker@, patrick@

date 2021-12-04T18:51:36Z
author dv
files src/sys/arch/amd64/amd64/vmm.c log diff annotate
message vmm(4): reload vmcs after possible sleep points

Guests running on Intel hosts that sleep on a lock might have their
process moved to another cpu core by the scheduler. If this happens,
the VMCS needs to be remotely cleared and locally loaded otherwise
vmx instructions will fail. vmd(8) will receive a failure code and
abort the guest.

This change stores the current (last) cpu the process was on before
attempting a function call that may sleep (e.g. uvm_fault(9)). Upon
function return, perform the VMCS dance if needed.

Tested with help from Mischa Pieters.

OK mlarkin@