]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
bhyve: Fix vtscsi maximum segment config
authorvangyzen <vangyzen@FreeBSD.org>
Fri, 21 Jun 2019 18:57:33 +0000 (18:57 +0000)
committervangyzen <vangyzen@FreeBSD.org>
Fri, 21 Jun 2019 18:57:33 +0000 (18:57 +0000)
commit4c3575eb3034bb99c1d63747142e4cefb464ff5c
tree4ebc0f327033ce4525c786a52b9ce4d1c967f845
parentf814ce2d88b2b64a56d0bd434cc986790e0892ee
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
MFC after: 1 week
Sponsored by: Dell EMC Isilon
Differential Revision: https://reviews.freebsd.org/D20529
usr.sbin/bhyve/pci_virtio_scsi.c