ia64/xen-unstable

changeset 10690:dc26ac2f7718

[IA64] don't change NaTPAGE into WB

Xen/IA64 changes memory attributes of tlb into WB to prevent domU from
uncachable access. But NaTPage attribute need not to be changed to WB.
Linux uses NaTPage attributes.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
`
author awilliam@xenbuild.aw
date Mon Jul 10 14:14:11 2006 -0600 (2006-07-10)
parents d7a511069a32
children dab0a5650e6d
files xen/arch/ia64/xen/mm.c
line diff
     1.1 --- a/xen/arch/ia64/xen/mm.c	Mon Jul 10 14:12:47 2006 -0600
     1.2 +++ b/xen/arch/ia64/xen/mm.c	Mon Jul 10 14:14:11 2006 -0600
     1.3 @@ -475,8 +475,11 @@ u64 translate_domain_pte(u64 pteval, u64
     1.4  	 * Don't let non-dom0 domains map uncached addresses.  This can
     1.5  	 * happen when domU tries to touch i/o port space.  Also prevents
     1.6  	 * possible address aliasing issues.
     1.7 +	 * WB => WB
     1.8 +	 * UC, UCE, WC => WB
     1.9 +	 * NaTPage => NaTPage
    1.10  	 */
    1.11 -	if (d != dom0)
    1.12 +	if (d != dom0 && (pteval2 & _PAGE_MA_MASK) != _PAGE_MA_NAT)
    1.13  		pteval2 &= ~_PAGE_MA_MASK;
    1.14  
    1.15  	return pteval2;