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, May 17, 1:21 AM
Unknown Object (File)
Sun, May 17, 1:21 AM
Unknown Object (File)
Sun, May 17, 1:11 AM
Unknown Object (File)
Fri, May 15, 3:03 PM
Unknown Object (File)
Fri, May 15, 11:06 AM
Unknown Object (File)
Fri, May 15, 3:18 AM
Unknown Object (File)
Fri, May 15, 12:21 AM
Unknown Object (File)
Tue, May 12, 6: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