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, Oct 7, 12:38 AM
Unknown Object (File)
Wed, Sep 24, 3:18 AM
Unknown Object (File)
Thu, Sep 18, 8:22 PM
Unknown Object (File)
Wed, Sep 17, 9:14 AM
Unknown Object (File)
Sep 11 2025, 4:08 AM
Unknown Object (File)
Sep 8 2025, 7:52 PM
Unknown Object (File)
Sep 6 2025, 7:40 PM
Unknown Object (File)
Aug 29 2025, 5:35 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