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-devel

[Xen-devel] [PATCH] linux/i386: fix ordering in pte_free_kernel()

To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH] linux/i386: fix ordering in pte_free_kernel()
From: "Jan Beulich" <jbeulich@xxxxxxxxxx>
Date: Fri, 18 Jul 2008 10:38:48 +0100
Delivery-date: Fri, 18 Jul 2008 02:38:51 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Almost as usual, written and tested on 2.6.16.60 and made apply to the
2.6.18 tree without further testing.

Signed-off-by: Jan Beulich <jbeulich@xxxxxxxxxx>

Index: sle10sp2-2008-07-16/include/asm-i386/mach-xen/asm/pgalloc.h
===================================================================
--- sle10sp2-2008-07-16.orig/include/asm-i386/mach-xen/asm/pgalloc.h    
2007-12-10 10:34:42.000000000 +0100
+++ sle10sp2-2008-07-16/include/asm-i386/mach-xen/asm/pgalloc.h 2008-07-16 
10:19:55.000000000 +0200
@@ -36,8 +36,8 @@ extern struct page *pte_alloc_one(struct
 
 static inline void pte_free_kernel(pte_t *pte)
 {
-       free_page((unsigned long)pte);
        make_lowmem_page_writable(pte, XENFEAT_writable_page_tables);
+       free_page((unsigned long)pte);
 }
 
 extern void pte_free(struct page *pte);




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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] linux/i386: fix ordering in pte_free_kernel(), Jan Beulich <=