diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2011-08-03 10:49:17 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2011-08-12 08:31:28 -0500 |
commit | 6dc06f08b3d6c0347df00ac68d9f30e2b233a749 (patch) | |
tree | 08468c1f09746189b98da48c9596197f315d33e9 /hw/scsi.h | |
parent | a872a3049a7b9439879a496cf7cc147af8feb3ef (diff) |
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; |