From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34163) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eUXqk-0005dz-Gw for qemu-devel@nongnu.org; Thu, 28 Dec 2017 08:03:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eUXqh-0006i6-EP for qemu-devel@nongnu.org; Thu, 28 Dec 2017 08:03:54 -0500 Received: from mx1.redhat.com ([209.132.183.28]:43016) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eUXqh-0006hp-7Z for qemu-devel@nongnu.org; Thu, 28 Dec 2017 08:03:51 -0500 Date: Thu, 28 Dec 2017 14:03:23 +0100 From: Igor Mammedov Message-ID: <20171228140323.25dbd2d4@igors-macbook-pro.local> In-Reply-To: <20171227141903.4e158a36@igors-macbook-pro.local> References: <20171218201340.27583-1-dgilbert@redhat.com> <20171218201340.27583-6-dgilbert@redhat.com> <20171227141903.4e158a36@igors-macbook-pro.local> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v5 5/7] vhost: Regenerate region list from changed sections list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Dr. David Alan Gilbert (git)" Cc: pbonzini@redhat.com, maxime.coquelin@redhat.com, mst@redhat.com, qemu-devel@nongnu.org, groug@kaod.org On Wed, 27 Dec 2017 14:19:03 +0100 Igor Mammedov wrote: > On Mon, 18 Dec 2017 20:13:38 +0000 > "Dr. David Alan Gilbert (git)" wrote: > > > From: "Dr. David Alan Gilbert" > > > > Compare the sections list that's just been generated, and if it's > > different from the old one regenerate the region list. > > > > Signed-off-by: Dr. David Alan Gilbert > > --- [...] > > > + if (!dev->started) { > also why memmap is generated this early and not right before first use? > here we might generate memap but not actually use it. I retract question, as commit + follow up set_mem_table could happen before device is started. Having a comment here explaining it would be nice as the call flow is obvious. > > goto out; > > } > > > >