HomeFreeBSD

bhyve/virtio-scsi: Unlimit max_sectors

Description

bhyve/virtio-scsi: Unlimit max_sectors

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.

Reviewed by: corvink
Differential Revision: https://reviews.freebsd.org/D53466

Details

Provenance
rosenfeld_grumpf.hope-2000.orgAuthored on Oct 29 2025, 2:09 PM
emasteCommitted on Feb 6 2026, 2:55 PM
Reviewer
corvink
Differential Revision
D53466: bhyve/virtio-scsi: unlimit max_sectors
Parents
rG8bdcfc2a3feb: endian.h: Visibility comment: Fix grammar, a typo and punctuation
Branches
Unknown
Tags
Unknown