Skip to contentSkip to conversation

x86: fix an inverted page table entry flags translation

PATCH New Jan Beulich 1 participant 1 message Nov 5, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86: fix an inverted page table entry flags translation

xen/arch/x86/mm.c +1 -1
Index: 2008-10-27/xen/arch/x86/mm.c
===================================================================
@@ -4225,7 +4225,7 @@ int map_pages_to_xen(
                 {
                     if ( l3e_get_flags(ol3e) & _PAGE_GLOBAL )
                         flush_flags |= FLUSH_TLB_GLOBAL;
-                    if ( (l1f_to_lNf(l3e_get_flags(ol3e)) ^ flags) &
+                    if ( (lNf_to_l1f(l3e_get_flags(ol3e)) ^ flags) &
                          PAGE_CACHE_ATTRS )
                         flush_flags |= FLUSH_CACHE;
                     flush_area(virt, flush_flags);