Received: from eggs.gnu.org ([2001:4830:134:3::10]:48159) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bjLep-0001vr-W1 for qemu-devel@nongnu.org; Mon, 12 Sep 2016 03:28:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bjLek-0003q7-8L for qemu-devel@nongnu.org; Mon, 12 Sep 2016 03:27:59 -0400 Received: from mx1.redhat.com ([209.132.183.28]:39884) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bjLej-0003pY-SP for qemu-devel@nongnu.org; Mon, 12 Sep 2016 03:27:53 -0400 References: <1473323650-13298-1-git-send-email-maxime.coquelin@redhat.com> <1473323650-13298-3-git-send-email-maxime.coquelin@redhat.com> <20160908180744-mutt-send-email-mst@kernel.org> From: Maxime Coquelin Message-ID: <315b9df2-6fd9-efc4-ac20-5fea55b69b51@redhat.com> Date: Mon, 12 Sep 2016 09:27:48 +0200 MIME-Version: 1.0 In-Reply-To: <20160908180744-mutt-send-email-mst@kernel.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 2/2] vhost-user: only seek a reply if needed in set_mem_table List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Michael S. Tsirkin" , prerna.saxena@nutanix.com, marcandre.lureau@redhat.com Cc: qemu-devel@nongnu.org, peter.maydell@linaro.org On 09/08/2016 05:15 PM, Michael S. Tsirkin wrote: > On Thu, Sep 08, 2016 at 10:34:10AM +0200, Maxime Coquelin wrote: >> The goal of this patch is to only request a sync (reply_ack, >> or get_features) in set_mem_table only when necessary. >> >> It should not be necessary the first time we set the table, >> or when we add a new regions which hadn't been merged with an >> existing ones. > > I'm not sure I get the second part. If we don't sync, > can't use of memory by guest bypass the request? > Might this cause the backend to fail? > I guess backend could try to recover by flushing the > message queue, but if so, we probably should document this. > And if not, why do we care about merged regions? You are right, this is not working for the second part, it was a misunderstanding from my side. Now, for the first set_mem_table_call, Prerna is right, the client having negotiated the reply_ack, we should wait for it. I propose we drop patch 2, and only pick the first one. Michael, ok for you? Thanks, Maxime