From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:39220) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ULTSn-0004cq-VY for qemu-devel@nongnu.org; Fri, 29 Mar 2013 03:11:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ULTSl-00049W-Vk for qemu-devel@nongnu.org; Fri, 29 Mar 2013 03:11:01 -0400 Received: from mail-lb0-f177.google.com ([209.85.217.177]:36298) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ULTSl-000493-N9 for qemu-devel@nongnu.org; Fri, 29 Mar 2013 03:10:59 -0400 Received: by mail-lb0-f177.google.com with SMTP id r10so105867lbi.22 for ; Fri, 29 Mar 2013 00:10:58 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: <1364458107-5893-1-git-send-email-pingfank@linux.vnet.ibm.com> From: liu ping fan Date: Fri, 29 Mar 2013 15:10:38 +0800 Message-ID: Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [Qemu-devel] [PATCH] memory: reverse the priority when commit List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: Jan Kiszka , Anthony Liguori , Liu Ping Fan , qemu-devel@nongnu.org, Richard Henderson On Thu, Mar 28, 2013 at 10:44 PM, Peter Maydell wrote: > On 28 March 2013 08:08, Liu Ping Fan wrote: >> In theroy, the high priority should commit earlier, it is the same >> reason as the sequence of "Lower = earlier (during add), later (during del)" > > Hi. Could you give a bit more detail about the reason for this > change, please? Do any of our existing commit hooks currently > care about the order in which they're called (ie is this fixing > a bug), or is there some use case that would care in future? > > This change may well be right but it's not immediately obvious > that begin/commit are a paired set in the same way as (say) > add/del and log_start/log_stop, so more rationale would be > helpful. > Each componet (core, kvm,vhost) should have different priority to see the change of the memory layout, for they are async. But oh, here seems that I make a mistake, the sequence of commit has already make high priority first. Regards, Pingfan > thanks > -- PMM >