Skip to content

file-posix: fix refresh_limits for SCSI devices

Paolo Bonzini qemu-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3scsi-generic: pass max_segments via max_iov field in BlockLimitsblock/file-posix.c hw/scsi/scsi-generic.c+5 -40 replies
2/3file-posix: try BLKSECTGET on block devices too, do not round to power of 2block/file-posix.c+13 -140 replies
3/3file-posix: fix max_iov for /dev/sg devicesblock/file-posix.c+11 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] file-posix: fix refresh_limits for SCSI devices

refresh_limits is not doing anything for block devices, and is retrieving the maximum number of s/g list entries incorrectly for character devices.

Patches 2-3 fix these problems, while patch 1 is a small improvement to avoid making the BlockLimits unnecessarily restrictive when SG_IO is not in use.

Paolo

Paolo Bonzini (3):
scsi-generic: pass max_segments via max_iov field in BlockLimits
file-posix: try BLKSECTGET on block devices too, do not round to power
of 2
file-posix: fix max_iov for /dev/sg devices

 block/file-posix.c     | 37 +++++++++++++++++++++++--------------
 hw/scsi/scsi-generic.c |  6 ++++--
 2 files changed, 27 insertions(+), 16 deletions(-)
Signature · 1 line
2.30.1