summaryrefslogtreecommitdiffstats
path: root/hw/scsi/scsi-generic.c
diff options
context:
space:
mode:
authorFam Zheng2018-03-27 18:41:41 +0200
committerPaolo Bonzini2018-04-09 16:36:39 +0200
commit37c51741892a89cf5710f5ac231091fb0a6352c7 (patch)
treee1e99894e34497941e19cc83f87d9c52d1aa10d4 /hw/scsi/scsi-generic.c
parentconfigure: Add missing configure options to help text (diff)
downloadqemu-37c51741892a89cf5710f5ac231091fb0a6352c7.tar.gz
qemu-37c51741892a89cf5710f5ac231091fb0a6352c7.tar.xz
qemu-37c51741892a89cf5710f5ac231091fb0a6352c7.zip
scsi-disk: Don't enlarge min_io_size to max_io_size
Some backends report big max_io_sectors. Making min_io_size the same value in this case will make it impossible for guest to align memory, therefore the disk may not be usable at all. Do not enlarge them when they are zero. Reported-by: David Gibson <dgibson@redhat.com> Signed-off-by: Fam Zheng <famz@redhat.com> Message-Id: <20180327164141.19075-1-famz@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/scsi/scsi-generic.c')
0 files changed, 0 insertions, 0 deletions