WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-ppc-devel

[XenPPC] [xenppc-unstable] [POWERPC][XEN] Clear the RMA flag on freed pa

To: xen-ppc-devel@xxxxxxxxxxxxxxxxxxx
Subject: [XenPPC] [xenppc-unstable] [POWERPC][XEN] Clear the RMA flag on freed pages.
From: Xen patchbot-xenppc-unstable <patchbot-xenppc-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 22 Mar 2007 04:32:40 -0700
Delivery-date: Thu, 22 Mar 2007 07:06:50 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-ppc-devel-request@lists.xensource.com?subject=help>
List-id: Xen PPC development <xen-ppc-devel.lists.xensource.com>
List-post: <mailto:xen-ppc-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ppc-devel>, <mailto:xen-ppc-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ppc-devel>, <mailto:xen-ppc-devel-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-ppc-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-ppc-devel-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Hollis Blanchard <hollisb@xxxxxxxxxx>
# Date 1174514579 18000
# Node ID 59305500d95da83447a11732d0ed758702c11c64
# Parent  dcec453681bc85f9f6f3aa49431ded9a63aa1c9b
[POWERPC][XEN] Clear the RMA flag on freed pages.
Signed-off-by: Hollis Blanchard <hollisb@xxxxxxxxxx>
---
 xen/arch/powerpc/mm.c |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diff -r dcec453681bc -r 59305500d95d xen/arch/powerpc/mm.c
--- a/xen/arch/powerpc/mm.c     Thu Mar 08 14:39:52 2007 -0600
+++ b/xen/arch/powerpc/mm.c     Wed Mar 21 17:02:59 2007 -0500
@@ -401,9 +401,13 @@ int allocate_rma(struct domain *d, unsig
 
 void free_rma_check(struct page_info *page)
 {
-    if (test_bit(_PGC_page_RMA, &page->count_info) &&
-        !test_bit(_DOMF_dying, &page_get_owner(page)->domain_flags))
-        panic("Attempt to free an RMA page: 0x%lx\n", page_to_mfn(page));
+    if (test_bit(_PGC_page_RMA, &page->count_info)) {
+        if (!test_bit(_DOMF_dying, &page_get_owner(page)->domain_flags)) {
+            panic("Attempt to free an RMA page: 0x%lx\n", page_to_mfn(page));
+        } else {
+            clear_bit(_PGC_page_RMA, &page->count_info);
+        }
+    }
 }
 
 ulong pfn2mfn(struct domain *d, ulong pfn, int *type)

_______________________________________________
Xen-ppc-devel mailing list
Xen-ppc-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ppc-devel

<Prev in Thread] Current Thread [Next in Thread>
  • [XenPPC] [xenppc-unstable] [POWERPC][XEN] Clear the RMA flag on freed pages., Xen patchbot-xenppc-unstable <=