mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
scsi: hotplug windup
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
ef816d831f
commit
cb23117be7
2 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue