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: Use normal set_pmd() in vmalloc_sync_one

To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH] linux/i386: Use normal set_pmd() in vmalloc_sync_one() on modern Xen
From: "Jan Beulich" <jbeulich@xxxxxxxxxx>
Date: Thu, 22 Nov 2007 13:11:30 +0000
Delivery-date: Thu, 22 Nov 2007 05:10:50 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
As usual, written and tested against 2.6.23 and made apply against
2.6.18 without further testing.

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

Index: head-2007-10-26/arch/i386/mm/fault-xen.c
===================================================================
--- head-2007-10-26.orig/arch/i386/mm/fault-xen.c       2007-10-19 
10:57:16.000000000 +0200
+++ head-2007-10-26/arch/i386/mm/fault-xen.c    2007-11-21 15:13:53.000000000 
+0100
@@ -348,11 +348,11 @@ static inline pmd_t *vmalloc_sync_one(pg
        if (!pmd_present(*pmd_k))
                return NULL;
        if (!pmd_present(*pmd))
-#ifndef CONFIG_XEN
+#if CONFIG_XEN_COMPAT > 0x030002
                set_pmd(pmd, *pmd_k);
 #else
                /*
-                * When running on Xen we must launder *pmd_k through
+                * When running on older Xen we must launder *pmd_k through
                 * pmd_val() to ensure that _PAGE_PRESENT is correctly set.
                 */
                set_pmd(pmd, __pmd(pmd_val(*pmd_k)));




_______________________________________________
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: Use normal set_pmd() in vmalloc_sync_one() on modern Xen, Jan Beulich <=