Received: from eggs.gnu.org ([2001:4830:134:3::10]:55299) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c4pqZ-0000qG-UE for qemu-devel@nongnu.org; Thu, 10 Nov 2016 08:56:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c4pqW-0001m9-Re for qemu-devel@nongnu.org; Thu, 10 Nov 2016 08:56:56 -0500 Received: from mx1.redhat.com ([209.132.183.28]:59294) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c4pqW-0001lo-KO for qemu-devel@nongnu.org; Thu, 10 Nov 2016 08:56:52 -0500 Date: Thu, 10 Nov 2016 15:56:50 +0200 From: "Michael S. Tsirkin" Message-ID: <20161110155509-mutt-send-email-mst@kernel.org> References: <1478785759-29480-1-git-send-email-felipe@nutanix.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1478785759-29480-1-git-send-email-felipe@nutanix.com> Subject: Re: [Qemu-devel] [PATCH v2 0/3] Introduce vhost-user-scsi and sample application List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Felipe Franciosi Cc: Paolo Bonzini , Stefan Hajnoczi , Marc-Andre Lureau , "qemu-devel@nongnu.org" On Thu, Nov 10, 2016 at 05:49:16AM -0800, Felipe Franciosi wrote: > Based on various discussions on the 2016 KVM Forum, I'm sending over a > vhost-user-scsi implementation for your consideration. > > This patch set introduces a new vhost-user SCSI device. While heavily > based on vhost-scsi, it is implemented using vhost's userspace > counterpart. The device has been coded and tested to work with live > migration. > > As part of this work, a new vhost-scsi-common device was created and > the existing vhost-scsi device moved underneath it. The new > vhost-user-scsi device is also placed underneath it. > > A sample application based on the newly introduced libvhost-user is > also included. It makes use of libiscsi for simplicity. > > For convenience, I'm maintaining an up-to-date version of these > patches (including some necessary fixes for libvhost-user and vhost > core code still under discussion) on: > > https://github.com/franciozzy/qemu/tree/vus-upstream > > See the individual patches for build and use instructions. > > Signed-off-by: Felipe Franciosi Thanks! I'll review after we put out the release, pls remember to ping then. I would like to get some feedback from storage maintainers on whether they see issues with supporting this. > v1 -> v2: > - Introduce new vhost-scsi-common device type. > - Move vhost-scsi device underneath vhost-scsi-common. > - Move sample application from tests/ to contrib/. > - Make sample application use the glib event loop. > - Minor fixes. > > Felipe Franciosi (3): > vhost-scsi: create a vhost-scsi-common abstraction > vus: Introduce vhost-user-scsi host device > vus: Introduce a vhost-user-scsi sample application > > Makefile | 4 + > Makefile.objs | 4 + > configure | 11 + > contrib/vhost-user-scsi/Makefile.objs | 1 + > contrib/vhost-user-scsi/vhost-user-scsi.c | 886 ++++++++++++++++++++++++++++++ > hw/scsi/Makefile.objs | 3 +- > hw/scsi/vhost-scsi-common.c | 143 +++++ > hw/scsi/vhost-scsi.c | 188 ++----- > hw/scsi/vhost-user-scsi.c | 198 +++++++ > hw/virtio/virtio-pci.c | 58 ++ > hw/virtio/virtio-pci.h | 15 + > include/hw/virtio/vhost-scsi-common.h | 48 ++ > include/hw/virtio/vhost-scsi.h | 11 +- > include/hw/virtio/vhost-user-scsi.h | 34 ++ > include/hw/virtio/virtio-scsi.h | 7 + > 15 files changed, 1466 insertions(+), 145 deletions(-) > create mode 100644 contrib/vhost-user-scsi/Makefile.objs > create mode 100644 contrib/vhost-user-scsi/vhost-user-scsi.c > create mode 100644 hw/scsi/vhost-scsi-common.c > create mode 100644 hw/scsi/vhost-user-scsi.c > create mode 100644 include/hw/virtio/vhost-scsi-common.h > create mode 100644 include/hw/virtio/vhost-user-scsi.h > > -- > 1.9.4