From: Samuel Thibault Subject: Re: [PATCH MINI-OS v2] xenbus: notify the other end when necessary Date: Mon, 26 Oct 2015 13:52:47 +0100 Message-ID: <20151026125247.GP19459@var.bordeaux.inria.fr> References: <1445863676-14874-1-git-send-email-wei.liu2@citrix.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: <1445863676-14874-1-git-send-email-wei.liu2@citrix.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 12:47:56 +0000, a =E9crit : > - if (xenstore_buf->rsp_prod - xenstore_buf->rsp_cons < sizeof= (msg)) > + if (xenstore_buf->rsp_prod - xenstore_buf->rsp_cons < sizeof= (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? Samuel