freebsd-skq/sys/dev/virtio
bryanv c4995464a5 Fix possible panic when creating VirtIO console dev aliases
Since we have no control over the name, the MAKEDEV_CHECKNAME flag must be
used to return an error on an invalid (to devfs) name instead of panicing.

r305900 that originally added this feature also introduced a few other bugs:
  - Proper locking not performed
  - Theoretically broke the expectation that the control event buffer would
    not span more than one pages, but did not update the CTASSERT that was
    in place to prevent this. However, since the struct virtio_console_control
    and the bulk buffer together were quite small, this could not have happened.

Also workaround an QEMU VirtIO spec violation in that it includes the NUL
terminator in the buffer length when the spec says it is not included.

PR:		223531
MFC after:	1 week
2018-01-13 21:39:46 +00:00
..
balloon sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00
block sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00
console Fix possible panic when creating VirtIO console dev aliases 2018-01-13 21:39:46 +00:00
mmio
network sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00
pci sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00
random sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00
scsi sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00
virtio_bus_if.m
virtio_config.h
virtio_ids.h
virtio_if.m
virtio_ring.h sys/dev: further adoption of SPDX licensing ID tags. 2017-11-20 19:36:21 +00:00
virtio.c sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00
virtio.h sys/dev: further adoption of SPDX licensing ID tags. 2017-11-20 19:36:21 +00:00
virtqueue.c sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00
virtqueue.h sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00