diff options
author | Paolo Bonzini | 2011-08-03 10:49:17 +0200 |
---|---|---|
committer | Anthony Liguori | 2011-08-12 15:31:28 +0200 |
commit | 6dc06f08b3d6c0347df00ac68d9f30e2b233a749 (patch) | |
tree | 08468c1f09746189b98da48c9596197f315d33e9 /hw/scsi.h | |
parent | scsi: add a bunch more common sense codes (diff) | |
download | qemu-6dc06f08b3d6c0347df00ac68d9f30e2b233a749.tar.gz qemu-6dc06f08b3d6c0347df00ac68d9f30e2b233a749.tar.xz qemu-6dc06f08b3d6c0347df00ac68d9f30e2b233a749.zip |
scsi: add support for unit attention conditions
Unit attention conditions override any sense data the device already
has. Their signaling and clearing is handled entirely by the SCSIBus
code, and they are completely transparent to the SCSIDevices.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/scsi.h')
-rw-r--r-- | hw/scsi.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -62,6 +62,7 @@ struct SCSIDevice uint32_t id; BlockConf conf; SCSIDeviceInfo *info; + SCSISense unit_attention; uint8_t sense[SCSI_SENSE_BUF_SIZE]; uint32_t sense_len; QTAILQ_HEAD(, SCSIRequest) requests; @@ -105,6 +106,7 @@ struct SCSIBus { BusState qbus; int busnr; + SCSISense unit_attention; int tcq, ndev; const SCSIBusOps *ops; |