]> git.ipfire.org Git - thirdparty/qemu.git/commit
usb-storage: Add rerror/werror properties
authorKevin Wolf <kwolf@redhat.com>
Mon, 25 Jun 2018 16:39:00 +0000 (18:39 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 29 Jun 2018 12:20:56 +0000 (14:20 +0200)
commitb8efb36b9e99dbea7370139c0866b97a933f78d4
treeed585786627527ccc7bb9ebb597ace766d66d3c8
parent0ab1c41d1cdf50c90ff976d29ac943e727334668
usb-storage: Add rerror/werror properties

The error handling policy was traditionally set with -drive, but with
-blockdev it is no longer possible to set frontend options. scsi-disk
(and other block devices) have long supported qdev properties to
configure the error handling policy, so let's add these options to
usb-storage as well and just forward them to the internal scsi-disk
instance.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
hw/scsi/scsi-bus.c
hw/usb/dev-storage.c
include/hw/scsi/scsi.h