summaryrefslogtreecommitdiffstats
path: root/include/hw/scsi
diff options
context:
space:
mode:
authorFam Zheng2018-01-17 01:52:22 +0100
committerGerd Hoffmann2018-01-26 07:58:34 +0100
commit395b95395934785ca86baafd314d0c31b307d16d (patch)
tree3ca5f18622bbb84cd5d6323f29f3a5e26a6397e5 /include/hw/scsi
parentusb: Remove legacy -usbdevice options (host, serial, disk and net) (diff)
downloadqemu-395b95395934785ca86baafd314d0c31b307d16d.tar.gz
qemu-395b95395934785ca86baafd314d0c31b307d16d.tar.xz
qemu-395b95395934785ca86baafd314d0c31b307d16d.zip
usb-storage: Fix share-rw option parsing
Because usb-storage creates an internal scsi device, we should propagate options. We already do so for bootindex etc, but failed to take care of share-rw. Fix it in an apparent way: add a new parameter to scsi_bus_legacy_add_drive and pass in s->conf.share_rw. Cc: qemu-stable@nongnu.org Signed-off-by: Fam Zheng <famz@redhat.com> Reviewed-by: Darren Kenny <darren.kenny@oracle.com> Message-id: 20180117005222.4781-1-famz@redhat.com Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'include/hw/scsi')
-rw-r--r--include/hw/scsi/scsi.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hw/scsi/scsi.h b/include/hw/scsi/scsi.h
index 23a8ee6a7d..802a647cdc 100644
--- a/include/hw/scsi/scsi.h
+++ b/include/hw/scsi/scsi.h
@@ -151,6 +151,7 @@ static inline SCSIBus *scsi_bus_from_device(SCSIDevice *d)
SCSIDevice *scsi_bus_legacy_add_drive(SCSIBus *bus, BlockBackend *blk,
int unit, bool removable, int bootindex,
+ bool share_rw,
const char *serial, Error **errp);
void scsi_bus_legacy_handle_cmdline(SCSIBus *bus, bool deprecated);
void scsi_legacy_handle_cmdline(void);