xemu/hw/scsi
Paolo Bonzini 53254e569f scsi-generic: fix sign extension of READ CAPACITY(10) data
Issuing the READ CAPACITY(10) command in the guest will cause QEMU
to update its knowledge of the maximum accessible LBA in the disk.
The recorded maximum LBA will be wrong if the disk is bigger than
1TB, because ldl_be_p returns a signed int.

When this is fixed, a latent bug will be unmasked.  If the READ
CAPACITY(10) command reported an overflow (0xFFFFFFFF), we must
not overwrite the previously-known maximum accessible LBA, or the guest
will fail to access the disk above the first 2TB.

Cc: qemu-stable@nongnu.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2013-06-18 12:43:03 +02:00
..
esp-pci.c scsi: add bus_name parameter to scsi_bus_new. 2013-05-03 12:05:15 -05:00
esp.c scsi: add bus_name parameter to scsi_bus_new. 2013-05-03 12:05:15 -05:00
lsi53c895a.c scsi: add bus_name parameter to scsi_bus_new. 2013-05-03 12:05:15 -05:00
Makefile.objs vhost-scsi: new device supporting the tcm_vhost Linux kernel module 2013-04-19 16:18:11 +02:00
megasas.c exec: eliminate qemu_put_ram_ptr 2013-05-24 18:42:19 +02:00
mfi.h hw: move private headers to hw/ subdirectories. 2013-04-08 18:13:16 +02:00
scsi-bus.c scsi: add bus_name parameter to scsi_bus_new. 2013-05-03 12:05:15 -05:00
scsi-disk.c scsi: reset cdrom tray statuses on scsi_disk_reset 2013-06-18 12:43:03 +02:00
scsi-generic.c scsi-generic: fix sign extension of READ CAPACITY(10) data 2013-06-18 12:43:03 +02:00
spapr_vscsi.c scsi: add bus_name parameter to scsi_bus_new. 2013-05-03 12:05:15 -05:00
srp.h hw: move private headers to hw/ subdirectories. 2013-04-08 18:13:16 +02:00
vhost-scsi.c virtio: remove virtiobindings. 2013-04-24 11:50:20 -05:00
viosrp.h hw: move private headers to hw/ subdirectories. 2013-04-08 18:13:16 +02:00
virtio-scsi.c virtio-scsi: fix the command line compatibility. 2013-05-03 12:05:15 -05:00
vmw_pvscsi.c hw/scsi: Don't increment a boolean value 2013-06-11 23:45:44 +04:00
vmw_pvscsi.h scsi: VMWare PVSCSI paravirtual device implementation 2013-04-19 10:44:17 +02:00