mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
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>
This commit is contained in:
parent
a872a3049a
commit
6dc06f08b3
3 changed files with 94 additions and 2 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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue