Skip to contentSkip to conversation

linux/i386: Use normal set_pmd() in vmalloc_sync_one() on modern Xen

PATCH New Jan Beulich 1 participant 1 message Nov 22, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 linux/i386: Use normal set_pmd() in vmalloc_sync_one() on modern Xen

As usual, written and tested against 2.6.23 and made apply against 2.6.18 without further testing.

arch/i386/mm/fault-xen.c +2 -2
Index: head-2007-10-26/arch/i386/mm/fault-xen.c
===================================================================
@@ -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)));