Page MenuHomeFreeBSD

virtio_blk: Limit use of indirect descriptors
ClosedPublic

Authored by andrew on Jun 17 2025, 3:18 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Jun 21, 1:12 AM
Unknown Object (File)
Sat, Jun 6, 6:06 PM
Unknown Object (File)
Thu, Jun 4, 7:03 AM
Unknown Object (File)
Thu, Jun 4, 6:56 AM
Unknown Object (File)
Thu, Jun 4, 1:05 AM
Unknown Object (File)
Sun, May 31, 8:00 AM
Unknown Object (File)
May 17 2026, 1:21 AM
Unknown Object (File)
May 17 2026, 1:21 AM
Subscribers

Details

Summary

Pass 0 as the number of indirect descriptors when they are not
supported.

This fixes an issue on the Arm FVP model where we don't negotiate
them, however pass a number of segments greater than
VIRTIO_MAX_INDIRECT. This leads to virtqueue_alloc failing and
virtio_blk failing to attach.

Sponsored by: Arm Ltd

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable