# HG changeset patch
# User vh249@xxxxxxxxxxxxxxxxxxxxxx
# Node ID 35801a414624343b727b87469e4cc6903c6b0db7
# Parent 7fa00b26a99532139fc872756ee5a977abb3db63
performance fix backported from unstable
Signed-off-by: Vincent Hanquez <vincent@xxxxxxxxxxxxx>
diff -r 7fa00b26a995 -r 35801a414624
linux-2.6-xen-sparse/include/asm-xen/asm-i386/pgtable-2level.h
--- a/linux-2.6-xen-sparse/include/asm-xen/asm-i386/pgtable-2level.h Fri Aug
12 13:48:47 2005
+++ b/linux-2.6-xen-sparse/include/asm-xen/asm-i386/pgtable-2level.h Mon Aug
15 12:13:41 2005
@@ -16,7 +16,17 @@
#define set_pte_batched(pteptr, pteval) \
queue_l1_entry_update(pteptr, (pteval).pte_low)
#define set_pte(pteptr, pteval) (*(pteptr) = pteval)
-#define set_pte_at(mm,addr,ptep,pteval) set_pte(ptep,pteval)
+
+inline static void set_pte_at(struct mm_struct *mm, unsigned long addr,
+ pte_t *ptep, pte_t val )
+{
+ if ( ((mm != current->mm) && (mm != &init_mm)) ||
+ HYPERVISOR_update_va_mapping( (addr), (val), 0 ) )
+ {
+ set_pte(ptep, val);
+ }
+}
+
#define set_pte_atomic(pteptr, pteval) set_pte(pteptr,pteval)
#define set_pmd(pmdptr, pmdval) xen_l2_entry_update((pmdptr), (pmdval))
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|