aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2009-09-25 21:42:43 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-10-05 09:32:49 -0500
commitcb23117be707ea805dec1ab06b3bae06b9fc38c1 (patch)
tree9132b8433a0ea9a01c9404adf02513fc76a03bc6 /hw/scsi-bus.c
parentusb: hotplug windup (diff)
downloadqemu-kvm-cb23117be707ea805dec1ab06b3bae06b9fc38c1.tar.gz
qemu-kvm-cb23117be707ea805dec1ab06b3bae06b9fc38c1.tar.bz2
qemu-kvm-cb23117be707ea805dec1ab06b3bae06b9fc38c1.zip
scsi: hotplug windup
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/scsi-bus.c')
-rw-r--r--hw/scsi-bus.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/scsi-bus.c b/hw/scsi-bus.c
index 27defc410..fe8991e9c 100644
--- a/hw/scsi-bus.c
+++ b/hw/scsi-bus.c
@@ -23,6 +23,7 @@ void scsi_bus_new(SCSIBus *bus, DeviceState *host, int tcq, int ndev,
bus->tcq = tcq;
bus->ndev = ndev;
bus->complete = complete;
+ bus->qbus.allow_hotplug = 1;
}
static int scsi_qdev_init(DeviceState *qdev, DeviceInfo *base)
@@ -75,6 +76,7 @@ void scsi_qdev_register(SCSIDeviceInfo *info)
{
info->qdev.bus_info = &scsi_bus_info;
info->qdev.init = scsi_qdev_init;
+ info->qdev.unplug = qdev_simple_unplug_cb;
info->qdev.exit = scsi_qdev_exit;
qdev_register(&info->qdev);
}