Page MenuHomeFreeBSD

virtio_blk: Limit use of indirect descriptors
ClosedPublic

Authored by andrew on Jun 17 2025, 3:18 PM.
Tags
None
Referenced Files
F172783010: D50909.id157184.diff
Sun, Sep 20, 11:16 PM
Unknown Object (File)
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
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 Skipped
Unit
Tests Skipped
Build Status
Buildable 64944
Build 61827: arc lint + arc unit