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)
Tue, Dec 30, 6:49 AM
Unknown Object (File)
Fri, Dec 19, 5:28 PM
Unknown Object (File)
Fri, Dec 19, 3:07 PM
Unknown Object (File)
Nov 26 2025, 9:20 AM
Unknown Object (File)
Nov 16 2025, 1:15 PM
Unknown Object (File)
Nov 14 2025, 9:10 AM
Unknown Object (File)
Nov 11 2025, 8:52 AM
Unknown Object (File)
Nov 10 2025, 12:42 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