aboutsummaryrefslogtreecommitdiff
path: root/hw/pci-hotplug.c
diff options
context:
space:
mode:
authorStefan Hajnoczi <stefanha@linux.vnet.ibm.com>2011-01-24 15:34:59 +0000
committerKevin Wolf <kwolf@redhat.com>2011-01-24 21:39:22 +0100
commit2d1fd2613769d99e5fad1f57ab8466434e2079fd (patch)
tree136fe1756575c1b7f0f19054ea2f4fe16bbe2107 /hw/pci-hotplug.c
parent419e691f8ef16635e73d814ef3ab825272208ba8 (diff)
downloadqemu-2d1fd2613769d99e5fad1f57ab8466434e2079fd.zip
qemu-2d1fd2613769d99e5fad1f57ab8466434e2079fd.tar.gz
qemu-2d1fd2613769d99e5fad1f57ab8466434e2079fd.tar.bz2
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/pci-hotplug.c')
-rw-r--r--hw/pci-hotplug.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/pci-hotplug.c b/hw/pci-hotplug.c
index 716133c..270a982 100644
--- a/hw/pci-hotplug.c
+++ b/hw/pci-hotplug.c
@@ -90,7 +90,7 @@ static int scsi_hot_add(Monitor *mon, DeviceState *adapter,
* specified).
*/
dinfo->unit = qemu_opt_get_number(dinfo->opts, "unit", -1);
- scsidev = scsi_bus_legacy_add_drive(scsibus, dinfo->bdrv, dinfo->unit);
+ scsidev = scsi_bus_legacy_add_drive(scsibus, dinfo->bdrv, dinfo->unit, false);
if (!scsidev) {
return -1;
}