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/pci-hotplug.c | |
parent | 419e691f8ef16635e73d814ef3ab825272208ba8 (diff) |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/pci-hotplug.c b/hw/pci-hotplug.c index 716133c376..270a9821e5 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; } |