You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
qemu/hw/scsi
Guenter Roeck 3abb67323a scsi: megasas: Internal cdbs have 16-byte length
Host drivers do not necessarily set cdb_len in megasas io commands.
With commits 6d1511cea0 ("scsi: Reject commands if the CDB length
exceeds buf_len") and fe9d8927e2 ("scsi: Add buf_len parameter to
scsi_req_new()"), this results in failures to boot Linux from affected
SCSI drives because cdb_len is set to 0 by the host driver.
Set the cdb length to its actual size to solve the problem.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Reviewed-by: Fabiano Rosas <farosas@suse.de>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Tested-by: Fiona Ebner <f.ebner@proxmox.com>
Link: https://lore.kernel.org/r/20230228171129.4094709-1-linux@roeck-us.net
Cc: qemu-stable@nongnu.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
6 days ago
..
Kconfig hw/scsi: Introduce VHOST_SCSI_COMMON symbol in Kconfig 1 year ago
emulation.c scsi-generic: avoid invalid access to struct when emulating block limits 6 years ago
esp-pci.c hw: Use device_class_set_legacy_reset() instead of opencoding 3 months ago
esp.c hw: Use device_class_set_legacy_reset() instead of opencoding 3 months ago
lsi53c895a.c hw: Use device_class_set_legacy_reset() instead of opencoding 3 months ago
megasas.c scsi: megasas: Internal cdbs have 16-byte length 6 days ago
meson.build hw/virtio: Build various target-agnostic objects just once 1 year ago
mfi.h hw/other: spelling fixes 1 year ago
mpi.h hw: Add support for LSI SAS1068 (mptsas) device 9 years ago
mptconfig.c nomaintainer: Fix Lesser GPL version number 4 years ago
mptendian.c nomaintainer: Fix Lesser GPL version number 4 years ago
mptsas.c hw: Use device_class_set_legacy_reset() instead of opencoding 3 months ago
mptsas.h include/hw/pci: Split pci_device.h off pci.h 2 years ago
scsi-bus.c scsi: fix regression and honor bootindex again for legacy drives 5 months ago
scsi-disk.c scsi: fix allocation for s390x loadparm 2 weeks ago
scsi-generic.c hw: Use device_class_set_legacy_reset() instead of opencoding 3 months ago
spapr_vscsi.c hw/scsi: Constify VMState 11 months ago
srp.h
trace-events hw/scsi/lsi53c895a: add timer to scripts processing 9 months ago
trace.h trace: switch position of headers to what Meson requires 4 years ago
vhost-scsi-common.c vhost-user-scsi: support reconnect to backend 1 year ago
vhost-scsi.c hw/vhost-scsi: fix -Werror=maybe-uninitialized 2 months ago
vhost-user-scsi.c vhost,vhost-user: Add VIRTIO_F_IN_ORDER to vhost feature bits 5 months ago
viosrp.h Updated the FSF address to <https://www.gnu.org/licenses/> 2 years ago
virtio-scsi-dataplane.c Rename "QEMU global mutex" to "BQL" in comments and docs 11 months ago
virtio-scsi.c hw/scsi: remove break after g_assert_not_reached() 2 months ago
vmw_pvscsi.c hw: Use device_class_set_legacy_reset() instead of opencoding 3 months ago
vmw_pvscsi.h