ia64/xen-unstable

changeset 18777:6b6610c115fc

x86: Fix an inverted flags conversion in map_page_to_xen()
Signed-off-by: Jan Beulich <jbeulich@novell.com>
author Keir Fraser <keir.fraser@citrix.com>
date Thu Nov 06 11:48:11 2008 +0000 (2008-11-06)
parents 3af208e6f850
children 3450cb9706ac
files xen/arch/x86/mm.c
line diff
     1.1 --- a/xen/arch/x86/mm.c	Thu Nov 06 11:07:02 2008 +0000
     1.2 +++ b/xen/arch/x86/mm.c	Thu Nov 06 11:48:11 2008 +0000
     1.3 @@ -4294,7 +4294,7 @@ int map_pages_to_xen(
     1.4                  {
     1.5                      if ( l3e_get_flags(ol3e) & _PAGE_GLOBAL )
     1.6                          flush_flags |= FLUSH_TLB_GLOBAL;
     1.7 -                    if ( (l1f_to_lNf(l3e_get_flags(ol3e)) ^ flags) &
     1.8 +                    if ( (lNf_to_l1f(l3e_get_flags(ol3e)) ^ flags) &
     1.9                           PAGE_CACHE_ATTRS )
    1.10                          flush_flags |= FLUSH_CACHE;
    1.11                      flush_area(virt, flush_flags);