Page MenuHomeFreeBSD

bhyve/virtio-scsi: preallocate all I/O requests
Needs ReviewPublic

Authored by rosenfeld_grumpf.hope-2000.org on Oct 30 2025, 7:38 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Jan 13, 1:20 AM
Unknown Object (File)
Mon, Jan 12, 2:30 PM
Unknown Object (File)
Thu, Jan 8, 5:04 PM
Unknown Object (File)
Wed, Jan 7, 6:52 AM
Unknown Object (File)
Sun, Dec 28, 9:55 AM
Unknown Object (File)
Fri, Dec 26, 11:50 AM
Unknown Object (File)
Dec 14 2025, 10:29 AM
Unknown Object (File)
Dec 14 2025, 7:22 AM

Details

Reviewers
jhb
corvink
markj
Group Reviewers
bhyve
Summary

By preallocating all I/O requests on all queues, we can take most
allocations out of the hot I/O code paths and simplify the code
significantly. While here, make sure we check all allocations for
success and make sure to handle failures gracefully.

Additionally, check for I/O request validity as early as possible,
and return illegal requests immediately.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 68273
Build 65156: arc lint + arc unit