diff options
author | Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> | 2011-01-24 15:34:59 +0000 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2011-01-24 21:39:22 +0100 |
commit | 2d1fd2613769d99e5fad1f57ab8466434e2079fd (patch) | |
tree | 136fe1756575c1b7f0f19054ea2f4fe16bbe2107 /hw/scsi.h | |
parent | 419e691f8ef16635e73d814ef3ab825272208ba8 (diff) | |
download | qemu-2d1fd2613769d99e5fad1f57ab8466434e2079fd.zip |
scsi: Allow scsi_bus_legacy_add_drive() to set removable bit
scsi-disk devices may wish to override the removable bit. Add support
for a qdev property on SCSI devices. This is will be used by usb-msd.
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'hw/scsi.h')
-rw-r--r-- | hw/scsi.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -94,7 +94,8 @@ static inline SCSIBus *scsi_bus_from_device(SCSIDevice *d) return DO_UPCAST(SCSIBus, qbus, d->qdev.parent_bus); } -SCSIDevice *scsi_bus_legacy_add_drive(SCSIBus *bus, BlockDriverState *bdrv, int unit); +SCSIDevice *scsi_bus_legacy_add_drive(SCSIBus *bus, BlockDriverState *bdrv, + int unit, bool removable); int scsi_bus_legacy_handle_cmdline(SCSIBus *bus); SCSIRequest *scsi_req_alloc(size_t size, SCSIDevice *d, uint32_t tag, uint32_t lun); |