freebsd-dev/sys/dev/virtio
Eric van Gyzen df8406543f VirtIO SCSI: validate seg_max on attach
Until r349278, bhyve presented a seg_max to the guest that was too large.
Detect this case and clamp it to the virtqueue size.  Otherwise, we would
fail the "too many segments to enqueue" assertion in virtqueue_enqueue().

I hit this by running a guest with a MAXPHYS of 256 KB.

Reviewed by:	bryanv cem
MFC after:	1 week
Sponsored by:	Dell EMC Isilon
Differential Revision:	https://reviews.freebsd.org/D20703
2019-06-22 01:20:45 +00:00
..
balloon virtio(4): Add PNP match metadata for virtio devices 2019-06-04 02:37:11 +00:00
block virtio(4): Add PNP match metadata for virtio devices 2019-06-04 02:37:11 +00:00
console virtio(4): Add PNP match metadata for virtio devices 2019-06-04 02:37:11 +00:00
mmio virtio(4): Expose PNP metadata through newbus 2019-06-04 02:34:59 +00:00
network virtio(4): Add PNP match metadata for virtio devices 2019-06-04 02:37:11 +00:00
pci virtio(4): Expose PNP metadata through newbus 2019-06-04 02:34:59 +00:00
random virtio(4): Add PNP match metadata for virtio devices 2019-06-04 02:37:11 +00:00
scsi VirtIO SCSI: validate seg_max on attach 2019-06-22 01:20:45 +00:00
virtio_bus_if.m Add VirtIO bus config_generation method 2018-02-19 19:28:24 +00:00
virtio_config.h Update VirtIO definitions from Linux virtio_config.h and virtio_ring.h headers 2018-06-17 20:45:48 +00:00
virtio_ids.h Sync VirtIO IDs with Linux 2018-01-14 06:03:40 +00:00
virtio_if.m
virtio_ring.h Update VirtIO definitions from Linux virtio_config.h and virtio_ring.h headers 2018-06-17 20:45:48 +00:00
virtio.c virtio(4): Expose PNP metadata through newbus 2019-06-04 02:34:59 +00:00
virtio.h virtio(4): Add PNP match metadata for virtio devices 2019-06-04 02:37:11 +00:00
virtqueue.c Add more virtqueue getter methods 2018-02-19 19:31:18 +00:00
virtqueue.h Add more virtqueue getter methods 2018-02-19 19:31:18 +00:00