From: Wei Liu Subject: Re: [Minios-devel] [PATCH MINI-OS v2] xenbus: notify the other end when necessary Date: Mon, 26 Oct 2015 13:55:31 +0000 Message-ID: <20151026135531.GG13118@zion.uk.xensource.com> References: <1445863676-14874-1-git-send-email-wei.liu2@citrix.com> <20151026125247.GP19459@var.bordeaux.inria.fr> 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: <20151026125247.GP19459@var.bordeaux.inria.fr> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Samuel Thibault , Wei Liu , minios-devel@lists.xenproject.org, Xen-devel , Ian Campbell , Ian Jackson List-Id: xen-devel@lists.xenproject.org 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 < size= of(msg)) > > + if (xenstore_buf->rsp_prod - xenstore_buf->rsp_cons < size= of(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. Wei. > Samuel > = > _______________________________________________ > Minios-devel mailing list > Minios-devel@lists.xenproject.org > http://lists.xenproject.org/cgi-bin/mailman/listinfo/minios-devel