ia64/xen-unstable

changeset 13123:90db0f68b121

[IA64] Only set nocache flag on dom0 ranges that do not support WB

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
author awilliam@xenbuild2.aw
date Thu Jan 04 23:21:30 2007 -0700 (2007-01-04)
parents 0f571adbd700
children 42babffffba5
files xen/arch/ia64/xen/dom_fw.c
line diff
     1.1 --- a/xen/arch/ia64/xen/dom_fw.c	Thu Jan 04 16:25:14 2007 -0700
     1.2 +++ b/xen/arch/ia64/xen/dom_fw.c	Thu Jan 04 23:21:30 2007 -0700
     1.3 @@ -549,7 +549,8 @@ complete_dom0_memmap(struct domain *d,
     1.4  			flags = ASSIGN_writable;	/* dummy - zero */
     1.5  			if (md->attribute & EFI_MEMORY_WP)
     1.6  				flags |= ASSIGN_readonly;
     1.7 -			if (md->attribute & EFI_MEMORY_UC)
     1.8 +			if ((md->attribute & EFI_MEMORY_UC) &&
     1.9 +			    !(md->attribute & EFI_MEMORY_WB))
    1.10  				flags |= ASSIGN_nocache;
    1.11  
    1.12  			assign_domain_mach_page(d, start, size, flags);