xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Ian Campbell <ian.campbell@citrix.com>
To: Wei Liu <wei.liu2@citrix.com>
Cc: minios-devel@lists.xenproject.org,
	Xen-devel <xen-devel@lists.xenproject.org>,
	Ian Jackson <ian.jackson@eu.citrix.com>,
	Samuel Thibault <samuel.thibault@ens-lyon.org>
Subject: Re: [PATCH MINI-OS] xenbus: notify the other end when necessary
Date: Mon, 2 Nov 2015 15:08:26 +0000	[thread overview]
Message-ID: <1446476906.3088.65.camel@citrix.com> (raw)
In-Reply-To: <20151102150021.GD18337@zion.uk.xensource.com>

On Mon, 2015-11-02 at 15:00 +0000, Wei Liu wrote:
> On Mon, Nov 02, 2015 at 12:14:50PM +0000, Ian Campbell wrote:
> > On Mon, 2015-10-26 at 09:47 +0000, Wei Liu wrote:
> > > The xenbus thread didn't send notification to other end when it
> > > expected
> > > more data or consumed responses, which led to stalling the ring from
> > > time to time.
> > > 
> > > This is the culprit that guest was less responsive when using stubdom
> > > because the device model was stalled.
> > > 
> > > Fix this by sending notification to the other end at the right
> > > places.
> > 
> > Could any of this code benefit from using the various macros in ring.h
> > which produce or consume entries on the ring and return a _notify bit?
> > 
> 
> The bug is it doesn't send notification at all. The existing code in
> Linux doesn't seem to care about mitigating notifications -- xenbus is
> supposed to exchange small amount of information anyway so whether a few
> more notifications are sent is not essential. I think it would be better
> if we follow something that works at this stage.
> 
> The use of ring macro can be considered an improvement but not
> essential to fix the bug. It can be considered as improvement in the
> future.

My reason for suggesting it was more that we trust that those macros are
already correct, compared with needing to reason from scratch about the
open coded version used in this code which is what appeared to be going on.

Ian.

  reply	other threads:[~2015-11-02 15:08 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-26  9:47 [PATCH MINI-OS] xenbus: notify the other end when necessary Wei Liu
2015-10-26 12:02 ` Samuel Thibault
2015-10-26 12:14   ` Wei Liu
2015-10-26 12:21     ` Samuel Thibault
2015-10-26 12:30       ` Wei Liu
2015-10-26 12:33         ` Samuel Thibault
2015-10-26 12:36           ` [Minios-devel] " Wei Liu
2015-11-02 12:14 ` Ian Campbell
2015-11-02 15:00   ` Wei Liu
2015-11-02 15:08     ` Ian Campbell [this message]
2015-11-02 15:53       ` Wei Liu
2015-11-02 16:07         ` Ian Campbell

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=1446476906.3088.65.camel@citrix.com \
    --to=ian.campbell@citrix.com \
    --cc=ian.jackson@eu.citrix.com \
    --cc=minios-devel@lists.xenproject.org \
    --cc=samuel.thibault@ens-lyon.org \
    --cc=wei.liu2@citrix.com \
    --cc=xen-devel@lists.xenproject.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).