xemu/hw/scsi
Markus Armbruster 7ef8cf9a08 scsi-bus: Fix transfer length for VERIFY with BYTCHK=11b
The transfer length depends on field BYTCHK, which is encoded in byte
1, bits 1..2.  However, the guard for for case BYTCHK=11b doesn't
work, and we get case 01b instead.  Fix it.

Note that since emulated scsi-hd fails the command outright, it takes
SCSI passthrough of a device that actually implements VERIFY with
BYTCHK=11b to make the bug bite.

Screwed up in commit d12ad44.  Spotted by Coverity.

Cc: qemu-stable@nongnu.org
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2014-02-22 10:02:23 +01:00
..
Makefile.objs vhost-scsi: new device supporting the tcm_vhost Linux kernel module 2013-04-19 16:18:11 +02:00
esp-pci.c hw: set interrupts using pci irq wrappers 2013-10-14 17:11:45 +03:00
esp.c scsi: Pass size to scsi_bus_new() 2013-08-30 20:14:39 +02:00
lsi53c895a.c pci, pc, acpi fixes, enhancements 2013-10-31 16:58:32 +01:00
megasas.c qdev: Remove hex8/32/64 property types 2014-02-14 21:12:04 +01:00
mfi.h hw: move private headers to hw/ subdirectories. 2013-04-08 18:13:16 +02:00
scsi-bus.c scsi-bus: Fix transfer length for VERIFY with BYTCHK=11b 2014-02-22 10:02:23 +01:00
scsi-disk.c scsi: report thin provisioning errors with werror=report 2014-02-22 10:02:23 +01:00
scsi-generic.c scsi: Change scsi sense buf size to 252 2014-02-22 10:02:23 +01:00
spapr_vscsi.c scsi: Change scsi sense buf size to 252 2014-02-22 10:02:23 +01:00
srp.h spapr-vscsi: add task management 2013-09-12 08:46:21 +02:00
vhost-scsi.c virtio: Convert exit to unrealize 2013-12-09 21:46:49 +01:00
viosrp.h hw: move private headers to hw/ subdirectories. 2013-04-08 18:13:16 +02:00
virtio-scsi.c virtio-scsi: Prevent assertion on missed events 2014-01-15 10:36:24 +01:00
vmw_pvscsi.c exec: Make stl_*_phys input an AddressSpace 2014-02-11 22:57:18 +10:00
vmw_pvscsi.h scsi: VMWare PVSCSI paravirtual device implementation 2013-04-19 10:44:17 +02:00