scsi: move host_status handling into SCSI drivers
commitf3126d65b393c015e8f87763fdccee99bb1119af
authorHannes Reinecke <hare@suse.de>
Wed, 24 Feb 2021 18:14:50 +0000 (24 19:14 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Sat, 6 Mar 2021 10:42:57 +0000 (6 11:42 +0100)
tree55e3593634cbaadde5e1a74f7c2d0e43c8001dd1
parenta108557bbff8a3f44233982f015f996426411be8
scsi: move host_status handling into SCSI drivers

Some SCSI drivers like virtio have an internal mapping for the
host_status. This patch moves the host_status translation into
the SCSI drivers to allow those drivers to set up the correct
values.

Signed-off-by: Hannes Reinecke <hare@suse.de>.
[Added default handling to avoid touching all drivers. - Paolo]
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/scsi/scsi-bus.c
hw/scsi/scsi-disk.c
hw/scsi/scsi-generic.c
hw/scsi/virtio-scsi.c
hw/scsi/vmw_pvscsi.c
include/hw/scsi/scsi.h