All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jason Wang <jasowang@redhat.com>
To: "Michael S. Tsirkin" <mst@redhat.com>
Cc: virtualization@lists.linux-foundation.org, kvm@vger.kernel.org,
	netdev@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH net] Revert "vhost: cache used event for better performance"
Date: Wed, 26 Jul 2017 21:18:02 +0800	[thread overview]
Message-ID: <117542fc-eef9-c043-7c9e-daafceb7db4e@redhat.com> (raw)
In-Reply-To: <20170726155435-mutt-send-email-mst@kernel.org>



On 2017年07月26日 20:57, Michael S. Tsirkin wrote:
> On Wed, Jul 26, 2017 at 04:03:17PM +0800, Jason Wang wrote:
>> This reverts commit 809ecb9bca6a9424ccd392d67e368160f8b76c92. Since it
>> was reported to break vhost_net. We want to cache used event and use
>> it to check for notification. We try to valid cached used event by
>> checking whether or not it was ahead of new, but this is not correct
>> all the time, it could be stale and there's no way to know about this.
>>
>> Signed-off-by: Jason Wang<jasowang@redhat.com>
> Could you supply a bit more data here please?  How does it get stale?
> What does guest need to do to make it stale?  This will be helpful if
> anyone wants to bring it back, or if we want to extend the protocol.
>

The problem we don't know whether or not guest has published a new used 
event. The check vring_need_event(vq->last_used_event, new + vq->num, 
new) is not sufficient to check for this.

Thanks

  reply	other threads:[~2017-07-26 13:18 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-26  8:03 [PATCH net] Revert "vhost: cache used event for better performance" Jason Wang
2017-07-26 10:53 ` Christian Borntraeger
2017-07-26 10:53 ` Christian Borntraeger
2017-07-26 11:56   ` Jason Wang
2017-07-26 11:56     ` Jason Wang
2017-07-26 12:57 ` Michael S. Tsirkin
2017-07-26 12:57   ` Michael S. Tsirkin
2017-07-26 13:18   ` Jason Wang [this message]
2017-07-26 13:37     ` Jason Wang
2017-07-26 16:08       ` Michael S. Tsirkin
2017-07-26 16:08         ` Michael S. Tsirkin
2017-07-30  6:26         ` K. Den
2017-07-30  6:26         ` K. Den
2017-08-09  2:38           ` Jason Wang
2017-08-09  2:38             ` Jason Wang
2017-08-09  4:37             ` Michael S. Tsirkin
2017-08-09  4:37               ` Michael S. Tsirkin
2017-08-13 14:11               ` Koichiro Den
2017-08-13 14:11                 ` Koichiro Den
2017-08-13 16:12                 ` Koichiro Den
2017-08-13 16:12                   ` Koichiro Den
2017-07-26 13:37     ` Jason Wang
2017-07-26 15:21     ` Michael S. Tsirkin
2017-07-26 15:21     ` Michael S. Tsirkin
2017-07-26 13:18   ` Jason Wang
  -- strict thread matches above, loose matches on Subject: below --
2017-07-26  8:03 Jason Wang

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=117542fc-eef9-c043-7c9e-daafceb7db4e@redhat.com \
    --to=jasowang@redhat.com \
    --cc=kvm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mst@redhat.com \
    --cc=netdev@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.