qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] memory: reverse the priority when commit
@ 2013-03-28  8:08 Liu Ping Fan
  2013-03-28 14:44 ` Peter Maydell
  0 siblings, 1 reply; 3+ messages in thread
From: Liu Ping Fan @ 2013-03-28  8:08 UTC (permalink / raw)
  To: qemu-devel; +Cc: Jan Kiszka, Anthony Liguori, Richard Henderson

In theroy, the high priority should commit earlier, it is the same
reason as the sequence of "Lower = earlier (during add), later (during del)"

Signed-off-by: Liu Ping Fan <pingfank@linux.vnet.ibm.com>
---
 memory.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/memory.c b/memory.c
index 75ca281..ecf1df3 100644
--- a/memory.c
+++ b/memory.c
@@ -750,7 +750,7 @@ void memory_region_transaction_commit(void)
             address_space_update_topology(as);
         }
 
-        MEMORY_LISTENER_CALL_GLOBAL(commit, Forward);
+        MEMORY_LISTENER_CALL_GLOBAL(commit, Reverse);
     }
 }
 
-- 
1.7.4.4

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [Qemu-devel] [PATCH] memory: reverse the priority when commit
  2013-03-28  8:08 [Qemu-devel] [PATCH] memory: reverse the priority when commit Liu Ping Fan
@ 2013-03-28 14:44 ` Peter Maydell
  2013-03-29  7:10   ` liu ping fan
  0 siblings, 1 reply; 3+ messages in thread
From: Peter Maydell @ 2013-03-28 14:44 UTC (permalink / raw)
  To: Liu Ping Fan; +Cc: Jan Kiszka, Anthony Liguori, qemu-devel, Richard Henderson

On 28 March 2013 08:08, Liu Ping Fan <pingfank@linux.vnet.ibm.com> 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.

thanks
-- PMM

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Qemu-devel] [PATCH] memory: reverse the priority when commit
  2013-03-28 14:44 ` Peter Maydell
@ 2013-03-29  7:10   ` liu ping fan
  0 siblings, 0 replies; 3+ messages in thread
From: liu ping fan @ 2013-03-29  7:10 UTC (permalink / raw)
  To: Peter Maydell
  Cc: Jan Kiszka, Anthony Liguori, Liu Ping Fan, qemu-devel,
	Richard Henderson

On Thu, Mar 28, 2013 at 10:44 PM, Peter Maydell
<peter.maydell@linaro.org> wrote:
> On 28 March 2013 08:08, Liu Ping Fan <pingfank@linux.vnet.ibm.com> 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
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-03-29  7:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-28  8:08 [Qemu-devel] [PATCH] memory: reverse the priority when commit Liu Ping Fan
2013-03-28 14:44 ` Peter Maydell
2013-03-29  7:10   ` liu ping fan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).