From: Samuel Thibault Subject: Re: [Minios-devel] [PATCH MINI-OS v2] xenbus: notify the other end when necessary Date: Mon, 26 Oct 2015 17:30:01 +0100 Message-ID: <20151026163001.GF18602@var.bordeaux.inria.fr> References: <1445863676-14874-1-git-send-email-wei.liu2@citrix.com> <20151026125247.GP19459@var.bordeaux.inria.fr> <20151026135531.GG13118@zion.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Content-Disposition: inline In-Reply-To: <20151026135531.GG13118@zion.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Wei Liu Cc: minios-devel@lists.xenproject.org, Xen-devel , Ian Jackson , Ian Campbell List-Id: xen-devel@lists.xenproject.org Wei Liu, le Mon 26 Oct 2015 13:55:31 +0000, a =E9crit : > On Mon, Oct 26, 2015 at 01:52:47PM +0100, Samuel Thibault wrote: > > Wei Liu, le Mon 26 Oct 2015 12:47:56 +0000, a =E9crit : > > > - if (xenstore_buf->rsp_prod - xenstore_buf->rsp_cons < si= zeof(msg)) > > > + if (xenstore_buf->rsp_prod - xenstore_buf->rsp_cons < si= zeof(msg)) { > > > + notify_remote_via_evtchn(start_info.store_evtchn); > > > break; > > > + } > > = > > > if (xenstore_buf->rsp_prod - xenstore_buf->rsp_cons < > > > - sizeof(msg) + msg.len) > > > + sizeof(msg) + msg.len) { > > > + notify_remote_via_evtchn(start_info.store_evtchn); > > = > > Actually thinking... In principle we should not need these two > > notifications: we have already notified last time we consumed a message. > > Notifying again shouldn't be bringing anything new. Do you actually see > > a difference with these? > > = > = > Yes. The ring still gets stalled somehow without those two > notifications. Ok... This is still very worrying. The more I'm thinking about it, the more I believe we shouldn't *have* to do this. Which version of the xenstore are you testing with, exactly? I guess that while we investigate this oddness we can apply this fix to stable trees, so as to be safer than sorry. Samuel