Re: [PATCH v8 2/3] tcm_vhost: Add hotplug/hotunplug support

2013-04-24 Thread Michael S. Tsirkin
On Wed, Apr 24, 2013 at 06:06:25PM +0800, Asias He wrote: > > > +{ > > > + > > > + struct vhost_scsi *vs = tpg->vhost_scsi; > > > + struct vhost_virtqueue *vq; > > > + u32 reason; > > > + int ret; > > > + > > > + mutex_lock(&tpg->tv_tpg_mutex); > > > + vs = tpg->vhost_scsi; > > > + mutex_unlock(&tp

Re: [PATCH v8 2/3] tcm_vhost: Add hotplug/hotunplug support

2013-04-24 Thread Michael S. Tsirkin
On Wed, Apr 24, 2013 at 06:06:25PM +0800, Asias He wrote: > On Wed, Apr 24, 2013 at 12:18:33PM +0300, Michael S. Tsirkin wrote: > > On Wed, Apr 24, 2013 at 11:32:23AM +0800, Asias He wrote: > > > In commit 365a7150094 ([SCSI] virtio-scsi: hotplug support for > > > virtio-scsi), hotplug support is a

Re: [PATCH v8 2/3] tcm_vhost: Add hotplug/hotunplug support

2013-04-24 Thread Asias He
On Wed, Apr 24, 2013 at 12:18:33PM +0300, Michael S. Tsirkin wrote: > On Wed, Apr 24, 2013 at 11:32:23AM +0800, Asias He wrote: > > In commit 365a7150094 ([SCSI] virtio-scsi: hotplug support for > > virtio-scsi), hotplug support is added to virtio-scsi. > > > > This patch adds hotplug and hotunplu

Re: [PATCH v8 2/3] tcm_vhost: Add hotplug/hotunplug support

2013-04-24 Thread Michael S. Tsirkin
On Wed, Apr 24, 2013 at 11:32:23AM +0800, Asias He wrote: > 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 ho

[PATCH v8 2/3] tcm_vhost: Add hotplug/hotunplug support

2013-04-23 Thread Asias He
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. Changes in v8: - Use vq->mutex for