OpenBSD cvs log

created 2020-04-11T18:04:45Z
begin 2020-04-08T00:00:00Z
end 2020-04-09T00:00:00Z
path src/sys
commits 10

date 2020-04-08T07:32:56Z
author pd
files src/sys/arch/amd64/amd64/vmm.c log diff annotate
src/sys/arch/amd64/include/vmmvar.h log diff annotate
message vmm(4): handle cr0 writes more correctly for vmx

* Switch to using vcpu->vc_vmx_cr0_fixed[1|0] to check must be 0|1 bits,
rather than the cpu capabilities.

* Add the checks on the new values as per the SDM 2.5 CONTROL REGISTERS.

2.1 Bits 63:32 of CR0 and CR4 are reserved and must be written with zeros.
Writing a nonzero value to any of the upper 32 bits results in a
general-protection exception, #GP(0).

2.2 setting the PG flag when the PE flag is clear causes a general-protection
exception (#GP).

11.5.1 Cache Control Registers and Bits, Table 11-5. Cache Operating Modes

2.3 CD: 0, NW: 1, Invalid setting. Generates a general-protection exception
(#GP) with an error code of 0.

*. Don't alway assume, if the guest is not disabling paging, they are
enabling it, check the guest is actually enabling paging. also only read
cr4 when we actually need it, not right at the start.

ok mpi@

Patch from Adam Steen <adam@adamsteen.com.au>

date 2020-04-08T07:39:48Z
author pd
files src/sys/arch/amd64/amd64/vmm.c log diff annotate
src/sys/arch/amd64/include/specialreg.h log diff annotate
src/sys/arch/amd64/include/vmmvar.h log diff annotate
message vmm(4): add IOCTL handler to sets the access protections of the ept

This exposes VMM_IOC_MPROTECT_EPT which can be used by vmd to lock in physical
pages. Currently, vmd just terminates the vm in case it gets a protection fault
in the future.

This feature is used by solo5 which uses vmm(4) as a backend hypervisor.

ok mpi@

Patch from Adam Steen <adam@adamsteen.com.au>

date 2020-04-08T08:01:52Z
author mpi
files src/sys/miscfs/fifofs/fifo_vnops.c log diff annotate
message Pass correct socket to the write kqueue filter.

Make EVFILT_WRITE notifications on fifo work.

ok visa@, millert@

date 2020-04-08T08:07:51Z
author mpi
files src/sys/kern/tty_tty.c log diff annotate
src/sys/kern/vfs_vnops.c log diff annotate
src/sys/kern/vfs_vops.c log diff annotate
message Make fifo_kqfilter() honor FREAD|FWRITE just like fifo_poll() does.

Prevent generating events that do not correspond to how the fifo has been
opened.

ok visa@, millert@

date 2020-04-08T08:07:52Z
author mpi
files src/sys/miscfs/fifofs/fifo_vnops.c log diff annotate
src/sys/sys/vnode.h log diff annotate
message Make fifo_kqfilter() honor FREAD|FWRITE just like fifo_poll() does.

Prevent generating events that do not correspond to how the fifo has been
opened.

ok visa@, millert@

date 2020-04-08T09:34:29Z
author stsp
files src/sys/net80211/ieee80211.c log diff annotate
src/sys/net80211/ieee80211_node.c log diff annotate
message Fix ifconfig "media:" line for 11n wifi interfaces during and after bgscan.

Media was displayed as e.g. "autoselect (OFDM6)" even though 11n was active
because the current media mode is changed to AUTO for background scanning
and was never switched back to 11N.

ok mpi@ pirofti@

date 2020-04-08T09:49:32Z
author kettenis
files src/sys/dev/usb/if_smsc.c log diff annotate
message Bump size of the buffer we use to fetch device tree properties. The
ethernet aliase paths in the new omap device trees are longer than 64
characters. Fixes the MAC address on Pandaboard-ES with the new
device tree.

ok jsg@

date 2020-04-08T10:54:15Z
author kettenis
files src/sys/dev/fdt/rkdrm.c log diff annotate
message Set correct pixel format. Fix limits on number of characters in the
rasops_init() call.

ok patrick@, jsg@

date 2020-04-08T11:30:48Z
author kettenis
files src/sys/dev/fdt/rkdrm.c log diff annotate
message Add glass console support.

ok patrick@, jsg@

date 2020-04-08T21:32:27Z
author kettenis
files src/sys/dev/fdt/rkclock.c log diff annotate
src/sys/dev/fdt/rkclock_clocks.h log diff annotate
message Add RK3328 Crypto/RNG clocks.