esp: Handle CMD_BUSRESET by resetting the SCSI bus
commitc6e51f1bb28ed762d2039c063cbb71a8ad29762d
authorJohn Millikin <john@john-millikin.com>
Wed, 17 Aug 2022 05:38:47 +0000 (17 14:38 +0900)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 1 Sep 2022 05:42:36 +0000 (1 07:42 +0200)
tree2fd766f0e5cd528f589ab53da840252dad16275e
parente93ded1bf6c94ab95015b33e188bc8b0b0c32670
esp: Handle CMD_BUSRESET by resetting the SCSI bus

Per investigation on the linked ticket, SunOS issues a SCSI bus reset
to the ESP as part of its boot sequence. If this ESP command doesn't
cause devices to assert sense flag UNIT ATTENTION, SunOS will consider
the CD-ROM device to be non-compliant with Common Command Set (CCS).
In this condition, the SunOS installer's early userspace doesn't set
the installation source location to sr0 and the miniroot copy fails.

Signed-off-by: John Millikin <john@john-millikin.com>
Suggested-by: Bill Paul <noisetube@gmail.com>
Buglink: https://gitlab.com/qemu-project/qemu/-/issues/1127
Message-Id: <20220817053846.699310-1-john@john-millikin.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/scsi/esp.c