From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49782) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bzQ64-000387-Ab for qemu-devel@nongnu.org; Wed, 26 Oct 2016 11:26:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bzQ61-0000TS-Lm for qemu-devel@nongnu.org; Wed, 26 Oct 2016 11:26:32 -0400 Received: from 206-15-90-246.static.twtelecom.net ([206.15.90.246]:49379 helo=felipe-franciosi.localdomain) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bzQ61-0000TF-Ff for qemu-devel@nongnu.org; Wed, 26 Oct 2016 11:26:29 -0400 From: Felipe Franciosi Date: Wed, 26 Oct 2016 08:26:24 -0700 Message-Id: <1477495586-5508-1-git-send-email-felipe@nutanix.com> Subject: [Qemu-devel] [PATCH 0/2] Introduce vhost-user-scsi and sample application List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini , Stefan Hajnoczi , Marc-Andre Lureau , "Michael S. Tsirkin" Cc: qemu-devel@nongnu.org, Felipe Franciosi 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. 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 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 Felipe Franciosi (2): vus: Introduce vhost-user-scsi host device vus: Introduce a vhost-user-scsi sample application configure | 10 + hw/scsi/Makefile.objs | 1 + hw/scsi/vhost-user-scsi.c | 299 +++++++++++++ hw/virtio/virtio-pci.c | 58 +++ hw/virtio/virtio-pci.h | 15 + include/hw/virtio/vhost-user-scsi.h | 45 ++ include/hw/virtio/virtio-scsi.h | 5 + tests/Makefile.include | 2 + tests/vhost-user-scsi.c | 862 ++++++++++++++++++++++++++++++++++++ 9 files changed, 1297 insertions(+) create mode 100644 hw/scsi/vhost-user-scsi.c create mode 100644 include/hw/virtio/vhost-user-scsi.h create mode 100644 tests/vhost-user-scsi.c -- 1.9.4