Page MenuHomeFreeBSD

bhyve/virtio-scsi: unlimit max_sectors
ClosedPublic

Authored by rosenfeld_grumpf.hope-2000.org on Oct 30 2025, 7:37 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, May 15, 10:35 AM
Unknown Object (File)
Fri, May 15, 1:28 AM
Unknown Object (File)
Thu, May 14, 8:23 PM
Unknown Object (File)
Wed, May 13, 8:11 AM
Unknown Object (File)
Wed, May 13, 6:05 AM
Unknown Object (File)
Tue, May 12, 11:00 AM
Unknown Object (File)
Tue, May 12, 10:40 AM
Unknown Object (File)
Tue, May 12, 10:40 AM

Details

Summary

The old default of 2 for max_sectors limits performance significantly
with guest systems where the virtio-scsi driver actually honors this
value.

As CTL doesn't seem to have any limit of the maximum size of a single
transfer, set this to INT32_MAX by default.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable