public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: "Nicholas A. Bellinger" <nab@linux-iscsi.org>
To: "Michael S. Tsirkin" <mst@redhat.com>
Cc: target-devel <target-devel@vger.kernel.org>,
	lf-virt <virtualization@lists.linux-foundation.org>,
	kvm-devel <kvm@vger.kernel.org>,
	Stefan Hajnoczi <stefanha@redhat.com>,
	Paolo Bonzini <pbonzini@redhat.com>, Asias He <asias@redhat.com>,
	Anthony Liguori <aliguori@linux.vnet.ibm.com>
Subject: Re: [PATCH] tcm_vhost: Avoid VIRTIO_RING_F_EVENT_IDX feature bit
Date: Thu, 28 Mar 2013 18:03:05 -0700	[thread overview]
Message-ID: <1364518985.10253.42.camel@haakon2.linux-iscsi.org> (raw)
In-Reply-To: <20130328164423.GE30183@redhat.com>

On Thu, 2013-03-28 at 18:44 +0200, Michael S. Tsirkin wrote:
> On Wed, Mar 27, 2013 at 11:25:02PM -0700, Nicholas A. Bellinger wrote:
> > On Thu, 2013-03-28 at 08:04 +0200, Michael S. Tsirkin wrote:
> > > On Thu, Mar 28, 2013 at 12:27:10AM +0000, Nicholas A. Bellinger wrote:
> > > > From: Nicholas Bellinger <nab@linux-iscsi.org>
> > > > 
> > > > This patch adds a VHOST_TCM_FEATURES mask minus VIRTIO_RING_F_EVENT_IDX
> > > > so that vhost-scsi-pci userspace will strip this feature bit once
> > > > GET_FEATURES reports it as being unsupported on the host.
> > > > 
> > > > This is to avoid a bug where ->handle_kicks() are missed when EVENT_IDX
> > > > is enabled by default in userspace code.
> > > > 
> > > > Cc: Michael S. Tsirkin <mst@redhat.com>
> > > > Cc: Asias He <asias@redhat.com>
> > > > Cc: Paolo Bonzini <pbonzini@redhat.com>
> > > > Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
> > > 
> > > No chance we can debug this properly?
> > > 
> > 
> > Well, I assumed this was a low priority item ahead of tracking down the
> > other blocking seabios related issue.
> > 
> > I'm fine with dropping this patch and requiring the event_idx=off option
> > for now for an initial QEMU merge, but thought this made things a little
> > easier for CLI users to avoid confusion.
> > 
> > > > ---
> > > >  drivers/vhost/tcm_vhost.c |   10 ++++++++--
> > > >  1 files changed, 8 insertions(+), 2 deletions(-)
> > > > 
> > > > diff --git a/drivers/vhost/tcm_vhost.c b/drivers/vhost/tcm_vhost.c
> > > > index 0524267..b127edc 100644
> > > > --- a/drivers/vhost/tcm_vhost.c
> > > > +++ b/drivers/vhost/tcm_vhost.c
> > > > @@ -60,6 +60,12 @@ enum {
> > > >  	VHOST_SCSI_VQ_IO = 2,
> > > >  };
> > > >  
> > > > +enum {
> > > > +	VHOST_TCM_FEATURES = (1ULL << VIRTIO_F_NOTIFY_ON_EMPTY) |
> > > > +			     (1ULL << VIRTIO_RING_F_INDIRECT_DESC) |
> > > > +			     (1ULL << VHOST_F_LOG_ALL)
> > > 
> > > All the rest of the code uses VHOST_SCSI so rename this too?
> > > 
> > > > +};
> > > > +
> > > 
> > > Please do something like
> > > 
> > > +/*
> > > +* VIRTIO_RING_F_EVENT_IDX seems broken. Not sure the bug is in
> > > +* kernel but disabling it helps.
> > > +* TODO: debug and remove the workaround.
> > > +*/
> > > +enum {
> > > +     VHOST_SCSI_FEATURES = VHOST_FEATURES & (~VIRTIO_RING_F_EVENT_IDX)
> > > +}
> > > 
> > 
> > Patch updated.
> > 
> > Thanks,
> > 
> > --nab
> 
> 
> Still haven't seen it, anyway

Apologies, I had to attend to some other items this afternoon..

Sent this updated patch out a moment ago.

> Acked-by: Michael S. Tsirkin <mst@redhat.com>
> 
> 

Thanks, including this now.

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

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-28  0:27 [PATCH] tcm_vhost: Avoid VIRTIO_RING_F_EVENT_IDX feature bit Nicholas A. Bellinger
2013-03-28  6:04 ` Michael S. Tsirkin
2013-03-28  6:25   ` Nicholas A. Bellinger
2013-03-28 16:43     ` Michael S. Tsirkin
2013-03-28 16:44     ` Michael S. Tsirkin
2013-03-29  1:03       ` Nicholas A. Bellinger [this message]

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=1364518985.10253.42.camel@haakon2.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=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