From: Felipe Franciosi <felipe@nutanix.com>
To: Paolo Bonzini <pbonzini@redhat.com>,
Stefan Hajnoczi <stefanha@redhat.com>,
Marc-Andre Lureau <marcandre.lureau@redhat.com>,
"Michael S. Tsirkin" <mst@redhat.com>
Cc: "qemu-devel@nongnu.org" <qemu-devel@nongnu.org>,
Felipe Franciosi <felipe@nutanix.com>
Subject: [Qemu-devel] [PATCH v3 0/3] Introduce vhost-user-scsi and sample application
Date: Wed, 21 Dec 2016 14:17:36 -0800 [thread overview]
Message-ID: <1482358659-4288-1-git-send-email-felipe@nutanix.com> (raw)
Based on various discussions on the 2016 KVM Forum, I'm sending over a
vhost-user-scsi implementation for your consideration.
This patchset 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) on:
https://github.com/franciozzy/qemu/tree/vus-upstream-3
See the individual patches for build and use instructions.
Signed-off-by: Felipe Franciosi <felipe@nutanix.com>
v2 -> v3:
- Rebase after vhost notifier fixes by Paolo.
- Exposed F_HOTPLUG and F_CHANGE on vhost-user-scsi.
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 | 3 +
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 | 215 ++++++++
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 | 35 ++
include/hw/virtio/virtio-scsi.h | 7 +
15 files changed, 1483 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
next reply other threads:[~2016-12-21 22:19 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-12-21 22:17 Felipe Franciosi [this message]
2016-12-21 22:17 ` [Qemu-devel] [PATCH v3 1/3] vhost-scsi: create a vhost-scsi-common abstraction Felipe Franciosi
2016-12-21 22:17 ` [Qemu-devel] [PATCH v3 2/3] vus: Introduce vhost-user-scsi host device Felipe Franciosi
2017-01-02 10:25 ` Paolo Bonzini
2017-01-02 18:07 ` Felipe Franciosi
2017-01-03 9:32 ` Paolo Bonzini
2017-01-13 0:31 ` Felipe Franciosi
2017-01-16 16:43 ` Paolo Bonzini
2016-12-21 22:17 ` [Qemu-devel] [PATCH v3 3/3] vus: Introduce a vhost-user-scsi sample application Felipe Franciosi
2016-12-21 22:22 ` [Qemu-devel] [PATCH v3 0/3] Introduce vhost-user-scsi and " Felipe Franciosi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1482358659-4288-1-git-send-email-felipe@nutanix.com \
--to=felipe@nutanix.com \
--cc=marcandre.lureau@redhat.com \
--cc=mst@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).