scsi: allow user to set werror as report
commit166854f7cd91d7cff23298180585209ea9d501d4
authorZihao Chang <changzihao1@huawei.com>
Tue, 3 Nov 2020 06:12:40 +0000 (3 14:12 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 25 Feb 2021 13:14:32 +0000 (25 14:14 +0100)
tree02275864ca6286b7bfdb9a7b355050c8263fae0d
parentb2d50a3343d939a603df4436ccc41b4cf8223f88
scsi: allow user to set werror as report

'enospc' is the default for -drive, but qemu allows user to set
drive option werror. If werror of scsi-generic is set to 'report'
by user, qemu will not allow vm to start.

This patch allow user to set werror as 'report' for scsi-generic.

Signed-off-by: Zihao Chang <changzihao1@huawei.com>
Reviewed-by: Fam Zheng <fam@euphon.net>
Message-Id: <20201103061240.1364-1-changzihao1@huawei.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/scsi/scsi-generic.c