scsi: Support TEST UNIT READY in the dummy LUN0
commit1cb27d9233d572826b45bd8498d2fab1b6f01df9
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 16 Jan 2014 12:06:13 +0000 (16 13:06 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 16 Jan 2014 12:09:50 +0000 (16 13:09 +0100)
treebefb7c32d378fb2b8925e04820c4c9b088fd464b
parentdc6afb99b39a78cf416c6d19e35f680f202016be
scsi: Support TEST UNIT READY in the dummy LUN0

SeaBIOS waits for LUN0 to respond to the TEST UNIT READY command
in order to decide whether it should part of the boot sequence.
If LUN0 does not respond to the command, boot is delayed by up
to 5 seconds.  This currently happens when there is no LUN0 on
a target.  Fix that by adding a trivial implementation of the
command.

Cc: qemu-stable@nongnu.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/scsi/scsi-bus.c