Page MenuHomeFreeBSD

virtio_blk: Limit use of indirect descriptors
ClosedPublic

Authored by andrew on Jun 17 2025, 3:18 PM.
Tags
None
Referenced Files
F172334140: D50909.diff
Thu, Sep 17, 7:33 PM
Unknown Object (File)
Mon, Sep 14, 8:48 AM
Unknown Object (File)
Fri, Sep 11, 6:11 PM
Unknown Object (File)
Fri, Sep 11, 3:48 PM
Unknown Object (File)
Wed, Sep 9, 5:59 PM
Unknown Object (File)
Mon, Sep 7, 4:57 PM
Unknown Object (File)
Sat, Sep 5, 3:03 PM
Unknown Object (File)
Sat, Sep 5, 8:05 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