qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] file-posix: fix refresh_limits for SCSI devices
@ 2021-04-15 12:43 Paolo Bonzini
  2021-04-15 12:43 ` [PATCH 1/3] scsi-generic: pass max_segments via max_iov field in BlockLimits Paolo Bonzini
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Paolo Bonzini @ 2021-04-15 12:43 UTC (permalink / raw)
  To: qemu-devel; +Cc: fam, qemu-block, mreitz

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(-)

-- 
2.30.1



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-04-15 12:53 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-04-15 12:43 [PATCH 0/3] file-posix: fix refresh_limits for SCSI devices Paolo Bonzini
2021-04-15 12:43 ` [PATCH 1/3] scsi-generic: pass max_segments via max_iov field in BlockLimits Paolo Bonzini
2021-04-15 12:43 ` [PATCH 2/3] file-posix: try BLKSECTGET on block devices too, do not round to power of 2 Paolo Bonzini
2021-04-15 12:43 ` [PATCH 3/3] file-posix: fix max_iov for /dev/sg devices Paolo Bonzini
2021-04-15 12:51 ` [PATCH 0/3] file-posix: fix refresh_limits for SCSI devices no-reply

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).