scsi: Implement 'get_sense' callback
commit74382217ca8f25a530c9f63e6b523e6259d7719a
authorHannes Reinecke <hare@suse.de>
Mon, 18 Apr 2011 11:36:02 +0000 (18 13:36 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 26 May 2011 10:14:16 +0000 (26 12:14 +0200)
tree5075f9599c392fde8019c06a293662ee27922ea1
parent0c34459b6af1b7ed2f000995b9bcb1c722646fbb
scsi: Implement 'get_sense' callback

The get_sense callback copies existing sense information into
the provided buffer. This is required if sense information
should be transferred together with the command response.

Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
hw/scsi-bus.c
hw/scsi-disk.c
hw/scsi-generic.c
hw/scsi.h
hw/spapr_vscsi.c