OpenBSD cvs log

created 2022-05-22T01:06:48Z
begin 2022-05-20T00:00:00Z
end 2022-05-21T00:00:00Z
path src/sys
commits 4

date 2022-05-20T05:02:47Z
author anton
files src/sys/dev/hid/hid.c log diff annotate
message uhid_maxrepid() is currently not able to observe all report IDs as it
passes hid_none as the wanted hid kind to hid_start_parse(). This
becomes a problem for descriptors with multiple report IDs per
collection. Therefore change the semantics of the hid_none kind to let
it represents all possible kinds.

Gets rid of "uhidev_intr: bad repid" console spam as reported by sthen@
on bugs@.

Have been in snaps for a week.

date 2022-05-20T05:03:45Z
author anton
files src/sys/dev/hid/hid.c log diff annotate
src/sys/dev/hid/hid.h log diff annotate
src/sys/dev/i2c/ihidev.c log diff annotate
src/sys/dev/usb/uhidev.c log diff annotate
message Rename hid_none to hid_all as it represents all possible hid kinds by
now.

date 2022-05-20T22:14:19Z
author dv
files src/sys/arch/amd64/amd64/vmm.c log diff annotate
message vmm: load the vmcs before reading vcpu registers

The vmm(4) ioctl for reading a vcpu's registers didn't flush and
load the vmcs before issuing vmread instructions. This adds a flag
to vcpu_readregs_vmx to signal if the vmcs needs to be synchronized
before attempting the reads. (This is the same approach used for
vcpu_writeregs_vmx function.)

This fixes `vmctl send` on Intel hosts using vmd(8).

While here, I noticed the vcpu_writeregs_vmx function doesn't
properly set the vmcs state variable to VMCS_CLEARED after running
a vmclear instruction. This can cause errors on vm re-entry.

ok mlarkin@

date 2022-05-20T22:42:09Z
author dv
files src/sys/arch/amd64/amd64/vmm.c log diff annotate
message vmm: remove spinout paranoia

Move all the spinout counters for ipis (enable/disable vmm, remote
vmcs clear) behind MP_LOCKDEBUG.

All three areas (vmm_start, vmm_stop, vmx_remote_vmclear) migrate
to infinite busy waits.

tested by and ok mlarkin@