tcm_vhost: Add hotplug/hotunplug support
authorAsias He <asias@redhat.com>
Thu, 25 Apr 2013 07:35:21 +0000 (15:35 +0800)
committerNicholas Bellinger <nab@linux-iscsi.org>
Thu, 25 Apr 2013 08:06:41 +0000 (01:06 -0700)
commita6c9af87363c5e964d981fe0ec4aa73061a0c793
tree527c2f5179730e9763b6d1a7e969383e907205a0
parentf2b7daf5b13f69ac09e706fb5b906478212a4100
tcm_vhost: Add hotplug/hotunplug support

In commit 365a7150094 ([SCSI] virtio-scsi: hotplug support for
virtio-scsi), hotplug support is added to virtio-scsi.

This patch adds hotplug and hotunplug support to tcm_vhost.

You can create or delete a LUN in targetcli to hotplug or hotunplug a
LUN in guest.

Signed-off-by: Asias He <asias@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/vhost/tcm_vhost.c
drivers/vhost/tcm_vhost.h