scsi: move sense handling to generic code
commitb45ef674f4c403398e75c6be02e27a0bfa813a11
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 3 Aug 2011 08:49:07 +0000 (3 10:49 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Fri, 12 Aug 2011 13:27:30 +0000 (12 08:27 -0500)
tree5cf3db12f4e69af96866f4b31ea4ff1bb09239b3
parent682a9b213ca3c47c4de5b0518c59c2e550299106
scsi: move sense handling to generic code

With this patch, sense data is stored in the generic data structures
for SCSI devices and requests.  The SCSI layer takes care of storing
sense data in the SCSIDevice for the subsequent REQUEST SENSE command.

At the same time, get_sense is removed and scsi_req_get_sense can use
an entirely generic implementation.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/scsi-bus.c
hw/scsi-disk.c
hw/scsi-generic.c
hw/scsi.h
trace-events