aboutsummaryrefslogtreecommitdiffstats
path: root/hw/scsi.h
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2011-08-03 10:49:17 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2011-08-12 08:31:28 -0500
commit6dc06f08b3d6c0347df00ac68d9f30e2b233a749 (patch)
tree08468c1f09746189b98da48c9596197f315d33e9 /hw/scsi.h
parenta872a3049a7b9439879a496cf7cc147af8feb3ef (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.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/scsi.h b/hw/scsi.h
index 4d5b596a3..09c3606fa 100644
--- a/hw/scsi.h
+++ b/hw/scsi.h
@@ -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;