From: Paolo Bonzini <pbonzini@redhat.com>
To: Asias He <asias@redhat.com>
Cc: virtualization@lists.linux-foundation.org,
target-devel@vger.kernel.org, kvm@vger.kernel.org,
"Michael S. Tsirkin" <mst@redhat.com>
Subject: Re: [PATCH] vhost-scsi: Enable VIRTIO_RING_F_EVENT_IDX
Date: Tue, 07 May 2013 10:03:14 +0200 [thread overview]
Message-ID: <5188B542.6050808@redhat.com> (raw)
In-Reply-To: <1367909509-11494-1-git-send-email-asias@redhat.com>
Il 07/05/2013 08:51, Asias He ha scritto:
> It is disabled as a workaround. Now userspace bits works fine with it.
> So, let's enable it.
>
> Signed-off-by: Asias He <asias@redhat.com>
> ---
> drivers/vhost/scsi.c | 8 +-------
> 1 file changed, 1 insertion(+), 7 deletions(-)
>
> diff --git a/drivers/vhost/scsi.c b/drivers/vhost/scsi.c
> index d860b58..5531ebc 100644
> --- a/drivers/vhost/scsi.c
> +++ b/drivers/vhost/scsi.c
> @@ -160,14 +160,8 @@ enum {
> VHOST_SCSI_VQ_IO = 2,
> };
>
> -/*
> - * 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)) |
> - (1ULL << VIRTIO_SCSI_F_HOTPLUG)
> + VHOST_SCSI_FEATURES = VHOST_FEATURES | (1ULL << VIRTIO_SCSI_F_HOTPLUG)
> };
>
> #define VHOST_SCSI_MAX_TARGET 256
>
The broken version was not ever committed to QEMU, I guess the same is
true for nlkt.
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Paolo
prev parent reply other threads:[~2013-05-07 8:03 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-07 6:51 [PATCH] vhost-scsi: Enable VIRTIO_RING_F_EVENT_IDX Asias He
2013-05-07 8:03 ` Paolo Bonzini [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=5188B542.6050808@redhat.com \
--to=pbonzini@redhat.com \
--cc=asias@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=mst@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