diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2021-06-11 13:38:58 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2021-06-15 17:17:09 +0200 |
commit | 4eb86065603400fe27c17a346985a97b489b55d4 (patch) | |
tree | 3d2a8bdc2fa00e5ea5e4159346373f24e26d9bf9 /include | |
parent | 0bcd5a18940e1c1e3350b93cfadcdc6b58ca1c0e (diff) | |
download | qemu-4eb86065603400fe27c17a346985a97b489b55d4.zip qemu-4eb86065603400fe27c17a346985a97b489b55d4.tar.gz qemu-4eb86065603400fe27c17a346985a97b489b55d4.tar.bz2 |
esp: store lun coming from the MESSAGE OUT phase
The LUN is selected with an IDENTIFY message, and persists
until the next message out phase. Instead of passing it to
do_busid_cmd, store it in ESPState. Because do_cmd can simply
skip the message out phase if cmdfifo_cdb_offset is zero, it
can now be used for the S without ATN cases as well.
Reviewed-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Tested-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/hw/scsi/esp.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hw/scsi/esp.h b/include/hw/scsi/esp.h index aada368..b1ec276 100644 --- a/include/hw/scsi/esp.h +++ b/include/hw/scsi/esp.h @@ -37,6 +37,7 @@ struct ESPState { SCSIRequest *current_req; Fifo8 cmdfifo; uint8_t cmdfifo_cdb_offset; + uint8_t lun; uint32_t do_cmd; bool data_in_ready; |