summaryrefslogtreecommitdiff
path: root/usr.bin/rcs/Makefile
diff options
context:
space:
mode:
authordv <dv@cvs.openbsd.org>2021-06-17 22:03:34 +0000
committerdv <dv@cvs.openbsd.org>2021-06-17 22:03:34 +0000
commit16e641985af58e6cb141161c6c2b0aaed9487261 (patch)
tree24824e7a36a90304d842e14ab78bd63a60144a34 /usr.bin/rcs/Makefile
parent64f8fe3944bf45d1b006dd02925926f6d16f3c46 (diff)
vmd(8): handle VIRTIO_BLK_T_GET_ID, check descriptor r/w flags
Linux guests like to issue VIRTIO_BLK_T_GET_ID commands in attempts to read the device serial number. It's not part of the virtio spec, but has been part of QEMU and Bhyve for multiple years. It will be landing in the next version of virtio (1.2), so this stubs out handling for the request type. The added benefit is it helps squelch log noise from Linux guests. For now, no serial number is set and the request status is set to VIRTIO_BLK_S_UNSUPP to tell the driver we don't support it. While here, swap the response to VIRTIO_BLK_T_FLUSH{,_OUT} to be also returning VIRTIO_BLK_S_UNSUPP. It's not negotiated nor implemented. Lastly, add checks for validating the vioblk device is only reading/writing descriptors with approrpriate read/write-only flags per the virtio spec. With input from claudio@, OK mlarkin@
Diffstat (limited to 'usr.bin/rcs/Makefile')
0 files changed, 0 insertions, 0 deletions