From patchwork Thu Mar 28 08:08:27 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: pingfank@linux.vnet.ibm.com X-Patchwork-Id: 232048 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 3F5D62C00B8 for ; Fri, 29 Mar 2013 01:21:54 +1100 (EST) Received: from localhost ([::1]:59344 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ULDiB-0007Mr-GI for incoming@patchwork.ozlabs.org; Thu, 28 Mar 2013 10:21:51 -0400 Received: from eggs.gnu.org ([208.118.235.92]:54626) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UL7t8-0002bx-3p for qemu-devel@nongnu.org; Thu, 28 Mar 2013 04:08:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UL7t5-0002lJ-Cf for qemu-devel@nongnu.org; Thu, 28 Mar 2013 04:08:46 -0400 Received: from e28smtp07.in.ibm.com ([122.248.162.7]:54937) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UL7t4-0002ko-NL for qemu-devel@nongnu.org; Thu, 28 Mar 2013 04:08:43 -0400 Received: from /spool/local by e28smtp07.in.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 28 Mar 2013 13:34:32 +0530 Received: from d28dlp03.in.ibm.com (9.184.220.128) by e28smtp07.in.ibm.com (192.168.1.137) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Thu, 28 Mar 2013 13:34:31 +0530 Received: from d28relay02.in.ibm.com (d28relay02.in.ibm.com [9.184.220.59]) by d28dlp03.in.ibm.com (Postfix) with ESMTP id 62B2F125804F for ; Thu, 28 Mar 2013 13:39:46 +0530 (IST) Received: from d28av03.in.ibm.com (d28av03.in.ibm.com [9.184.220.65]) by d28relay02.in.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id r2S88Rcd2228686 for ; Thu, 28 Mar 2013 13:38:28 +0530 Received: from d28av03.in.ibm.com (loopback [127.0.0.1]) by d28av03.in.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id r2S88UVB009009 for ; Thu, 28 Mar 2013 19:08:30 +1100 Received: from oc8440477808.cn.ibm.com (oc8440477808.cn.ibm.com [9.115.122.227]) by d28av03.in.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id r2S88S3f008839; Thu, 28 Mar 2013 19:08:29 +1100 From: Liu Ping Fan To: qemu-devel@nongnu.org Date: Thu, 28 Mar 2013 16:08:27 +0800 Message-Id: <1364458107-5893-1-git-send-email-pingfank@linux.vnet.ibm.com> X-Mailer: git-send-email 1.7.4.4 X-TM-AS-MML: No X-Content-Scanned: Fidelis XPS MAILER x-cbid: 13032808-8878-0000-0000-0000067B472C X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 122.248.162.7 X-Mailman-Approved-At: Thu, 28 Mar 2013 10:21:22 -0400 Cc: Jan Kiszka , Anthony Liguori , Richard Henderson Subject: [Qemu-devel] [PATCH] memory: reverse the priority when commit X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org 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 --- 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); } }