These patches implement the hotplug support for virtio-scsi. When a new device attaches/detaches to virtio-scsi bus via device_add/device_del commands, the HBA driver in guest kernel will be signaled to add/remove the scsi device.
Cong Meng (2): scsi bus: introduce hotplug() and hot_unplug() interfaces for SCSI bus virtio-scsi: Implement hotplug support for virtio-scsi hw/scsi-bus.c | 16 +++++++++++- hw/scsi.h | 2 + hw/virtio-scsi.c | 72 +++++++++++++++++++++++++++++++++++++++++++++++++++-- 3 files changed, 86 insertions(+), 4 deletions(-) -- 1.7.7