HomeFreeBSD

MFC r349278

Description

MFC r349278

bhyve: Fix vtscsi maximum segment config

The seg_max value reported to the guest should be two less than the
host's maximum, in order to leave room for the request and the
response. This is analogous to r347033 for virtio_block.

We hit the "too many segments to enqueue" assertion on OneFS because
we increase MAXPHYS to 256 KB.

Reviewed by: bryanv
Discussed with: cem jhb rgrimes
Sponsored by: Dell EMC Isilon
Differential Revision: https://reviews.freebsd.org/D20529

Details

Provenance
vangyzenAuthored on
Reviewer
bryanv
Differential Revision
D20529: bhyve: fix reporting of virtio scsi seg_max
Parents
rS349689: MFC r349320, r349324:
Branches
Unknown
Tags
Unknown