OpenBSD cvs log

created 2018-11-29T14:23:57Z
begin 2018-04-26T00:00:00Z
end 2018-04-27T00:00:00Z
path src/sys
commits 15

date 2018-04-26T06:28:43Z
author mpi
files src/sys/kern/kern_descrip.c log diff annotate
message Rewrite fdcopy() to avoid memcpy()s.

With and ok visa@

date 2018-04-26T06:51:48Z
author mpi
files src/sys/arch/amd64/amd64/pmap.c log diff annotate
src/sys/kern/kern_lock.c log diff annotate
message Drop into ddb(4) if pmap_tlb_shoot*() take too much time in MP_LOCKDEBUG
kernels.

While here sync all MP_LOCKDEBUG/while loops.

ok mlarkin@, visa@

date 2018-04-26T09:30:08Z
author deraadt
files src/sys/sys/pledge.h log diff annotate
message prot_exec is the correct name; spotted by landry

date 2018-04-26T10:14:26Z
author mpi
files src/sys/dev/usb/xhci.c log diff annotate
message Follows section 6.2.3.6 to compute endpoint interval.

ok stsp@

date 2018-04-26T10:19:31Z
author mpi
files src/sys/dev/usb/xhci.c log diff annotate
message Reduce differences between isoch & bulk/intr routines.

ok stsp@

date 2018-04-26T10:43:58Z
author mlarkin
files src/sys/arch/amd64/amd64/vmm.c log diff annotate
message vmm(4): ensure SVM_INTERCEPT_INTR is always enabled before entering
guest VM.

date 2018-04-26T10:45:45Z
author pirofti
files src/sys/kern/sys_socket.c log diff annotate
message Remove solock() surrounding PRU_CONTROL in soo_ioctl().

We do not need the lock there.
Missed this in my former commit pushing NET_LOCK() down the stack.

Found the hard way by naddy@, sorry!

OK mpi@.

date 2018-04-26T11:37:25Z
author mlarkin
files src/sys/arch/amd64/amd64/vmm.c log diff annotate
message vmm(4): remove some unnecessary kernel lock code from the SVM guest loop
that is not needed; this code deals with delaying the relocking of the
kernel lock until after interrupts are processed during external interrupt
exiting, but this is handled differently on SVM. External interrupts are
automatically handled by the CPU as soon as stgi() is performed after
exit. (The original code came from the VMX/Intel guest loop.)

ok guenther@

date 2018-04-26T12:47:02Z
author guenther
files src/sys/arch/amd64/amd64/db_trace.c log diff annotate
src/sys/arch/amd64/amd64/machdep.c log diff annotate
src/sys/arch/amd64/include/frame.h log diff annotate
src/sys/arch/amd64/include/frameasm.h log diff annotate
message Reorder trapframe/intrframe to put %rbp next to %rip and make it
behave like a real call frame, thus vastly simplifying the ddb back
trace logic.

based on whinging from deraadt@
ok jasper@ mpi@ phessler@

date 2018-04-26T12:50:07Z
author pirofti
files src/sys/dev/ic/athn.c log diff annotate
src/sys/dev/ic/bwfm.c log diff annotate
src/sys/dev/pci/if_ipw.c log diff annotate
src/sys/dev/pci/if_iwi.c log diff annotate
src/sys/dev/pci/if_iwm.c log diff annotate
src/sys/dev/pci/if_iwn.c log diff annotate
src/sys/dev/pci/if_wpi.c log diff annotate
src/sys/dev/usb/if_rsu.c log diff annotate
src/sys/net80211/ieee80211.c log diff annotate
src/sys/net80211/ieee80211_ioctl.c log diff annotate
src/sys/net80211/ieee80211_node.c log diff annotate
src/sys/net80211/ieee80211_var.h log diff annotate
message net80211: stub SIOCS80211SCAN, make ifconfig scan instant.

The following removes the functionality of the SIOCS80211SCAN ioctl.
After long discussions with stps@, mpi@, and deraadt@ we decided that
this was the correct way of fixing ifconfig scan from blocking the
network stack.

The kernel will continue scanning in the background and filling the
nodes array, but ifconfig scan commands will now basically do just a
SIOCG80211ALLNODES and pretty print the array. So the output stays the
same but is instant.

In fact, when the interface is freshly brought up, if you type fast
enough, you can see the array being filled by running multiple ifconfig
scans in sequence.

The SIOCS80211SCAN ioctl stays for now as wi(4), pgt(4) and malo(4)
still need it around. But not for long...

Another change that this introduces is the fact that ifconfig scan no
longer plays with UP and DOWN. If the interface is down it complains and
exits. This is needed in order to maintain the nodes list.

Works on iwm(4), iwn(4), urtwn(4), run(4) and athn(4).

Tested by mpi@, landry@, florian@, thanks!
OK mpi@.

date 2018-04-26T14:09:05Z
author guenther
files src/sys/arch/amd64/amd64/locore.S log diff annotate
src/sys/arch/amd64/amd64/vector.S log diff annotate
message Prefer leaq+%rip-relative over movabsq
xrstor_resume must not have profile prologue, so use NENTRY
Don't use _C_LABEL() with some pure-ASM labels

date 2018-04-26T14:34:42Z
author mlarkin
files src/sys/arch/amd64/amd64/vmm.c log diff annotate
message vmm(4): Rearrange some interrupt window exiting code

Simplify some code and reduce the number of places we are handling VINTR
exits.

ok brynet

date 2018-04-26T15:05:31Z
author phessler
files src/sys/arch/amd64/conf/RAMDISK_CD log diff annotate
src/sys/arch/i386/conf/RAMDISK_CD log diff annotate
message enable vmmci(4) on the ramdisks, so bsd.rd plays nicer when it powers off

OK mlarkin@

date 2018-04-26T16:13:13Z
author phessler
files src/sys/arch/amd64/conf/RAMDISK_CD log diff annotate
src/sys/arch/i386/conf/RAMDISK_CD log diff annotate
message Oups, we only need vmmci(4) for the ramdisk, not the whole vmm(4).

noticed by deraadt@ and mlarkin@

date 2018-04-26T17:15:39Z
author mlarkin
files src/sys/arch/amd64/amd64/vmm.c log diff annotate
src/sys/arch/amd64/include/vmmvar.h log diff annotate
message vmm(4): passthrough port 0x61 to vmd(8)

ok guenther