qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Nicholas A. Bellinger" <nab@linux-iscsi.org>
To: target-devel <target-devel@vger.kernel.org>
Cc: kvm-devel <kvm@vger.kernel.org>,
	"Michael S. Tsirkin" <mst@redhat.com>,
	qemu-devel <qemu-devel@nongnu.org>,
	Nicholas Bellinger <nab@linux-iscsi.org>,
	lf-virt <virtualization@lists.linux-foundation.org>,
	Anthony Liguori <aliguori@linux.vnet.ibm.com>,
	Stefan Hajnoczi <stefanha@redhat.com>,
	Paolo Bonzini <pbonzini@redhat.com>, Asias He <asias@redhat.com>
Subject: [Qemu-devel] [PATCH-v2 0/2] Add support for vhost-scsi-pci
Date: Fri, 29 Mar 2013 01:08:14 +0000	[thread overview]
Message-ID: <1364519296-31883-1-git-send-email-nab@linux-iscsi.org> (raw)

From: Nicholas Bellinger <nab@linux-iscsi.org>

Hi QEMU folks,

The following is the patch-v2 series to support vhost-scsi-pci within
the upstream QEMU tree.

This includes the refactoring of existing virtio-scsi code from Paolo
to allow a VirtIOSCSICommon structure that is shared amoungst existing
virtio-scsi-pci device and new vhost-scsi-pci device code.

Currently this code requires Asias's seabios bugfixes (commit 5a7730db5
and b44a7be17), and two other tcm_vhost patches to reset vq->last_used_idx
after seabios handoff and disable EVENT_IDX from GET_FEATURES that's
currently in flight for v3.9.0 kernel code.

There is a seperate issue with seabios virtio-scsi that's causing a failure
in vhost_verify_ring_mappings() is still being tracked down, but this series
should now be getting close to a merge minus this last outstanding item.

Changes in Patch-v2:
   - Move ->get_features() assignment to virtio_scsi_init() instead of
     virtio_scsi_init_common() (nab)
   - Add vhost_scsi_get_features() in order to determine feature bits
     supports by host kernel (mst + nab)
   - Re-enable usage of DEFINE_VIRTIO_COMMON_FEATURES, and allow
     EVENT_IDX to be disabled by host in vhost_scsi_get_features() (mst)
   - Drop unused hotplug bit in DEFINE_VHOST_SCSI_PROPERTIES (mst)
   - Drop vhost_verify_ring_mappings() enable-only hack (mst)

A big thanks to Paolo, Asias, MST, and Stefan for all of their efforts
on this series.

Thank you,

Paolo Bonzini (2):
  virtio-scsi: create VirtIOSCSICommon
  vhost-scsi: new device supporting the tcm_vhost Linux kernel module

 configure                  |   15 +++-
 hw/Makefile.objs           |    5 +-
 hw/s390x/s390-virtio-bus.c |   35 ++++++
 hw/vhost-scsi.c            |  264 ++++++++++++++++++++++++++++++++++++++++++++
 hw/vhost-scsi.h            |   64 +++++++++++
 hw/virtio-pci.c            |   62 ++++++++++
 hw/virtio-scsi.c           |  192 ++++++++------------------------
 hw/virtio-scsi.h           |  132 +++++++++++++++++++++-
 include/qemu/osdep.h       |    4 +
 9 files changed, 623 insertions(+), 150 deletions(-)
 create mode 100644 hw/vhost-scsi.c
 create mode 100644 hw/vhost-scsi.h

-- 
1.7.2.5

             reply	other threads:[~2013-03-29  1:19 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-29  1:08 Nicholas A. Bellinger [this message]
2013-03-29  1:08 ` [Qemu-devel] [PATCH-v2 1/2] virtio-scsi: create VirtIOSCSICommon Nicholas A. Bellinger
2013-04-08 21:59   ` Anthony Liguori
2013-04-09  4:08     ` Nicholas A. Bellinger
2013-04-09  7:14     ` Paolo Bonzini
2013-03-29  1:08 ` [Qemu-devel] [PATCH-v2 2/2] vhost-scsi: new device supporting the tcm_vhost Linux kernel module Nicholas A. Bellinger
2013-03-29  6:39 ` [Qemu-devel] [PATCH-v2 0/2] Add support for vhost-scsi-pci Asias He
2013-03-29  6:48   ` Nicholas A. Bellinger
2013-03-29  6:55     ` Asias He

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=1364519296-31883-1-git-send-email-nab@linux-iscsi.org \
    --to=nab@linux-iscsi.org \
    --cc=aliguori@linux.vnet.ibm.com \
    --cc=asias@redhat.com \
    --cc=kvm@vger.kernel.org \
    --cc=mst@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=stefanha@redhat.com \
    --cc=target-devel@vger.kernel.org \
    --cc=virtualization@lists.linux-foundation.org \
    /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).