direct-io.hg

changeset 13866:f4395e945393

[IA64] Include dummy EFI memory descriptors for unmapped ranges

This eliminates a lot of warnings about dom0 trying to do UC
mappings to WB ranges. Linux doesn't deal well with holes within
a granule.

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
author awilliam@xenbuild2.aw
date Tue Jan 30 23:35:32 2007 -0700 (2007-01-30)
parents d0b2022e2403
children 6d38ae7927cf
files xen/arch/ia64/xen/dom_fw.c
line diff
     1.1 --- a/xen/arch/ia64/xen/dom_fw.c	Mon Jan 29 11:17:15 2007 -0700
     1.2 +++ b/xen/arch/ia64/xen/dom_fw.c	Tue Jan 30 23:35:32 2007 -0700
     1.3 @@ -599,7 +599,17 @@ complete_dom0_memmap(struct domain *d,
     1.4  
     1.5  		case EFI_UNUSABLE_MEMORY:
     1.6  		case EFI_PAL_CODE:
     1.7 -			/* Discard.  */
     1.8 +			/*
     1.9 +			 * We don't really need these, but holes in the
    1.10 +			 * memory map may cause Linux to assume there are
    1.11 +			 * uncacheable ranges within a granule.
    1.12 +			 */
    1.13 +			dom_md->type = EFI_UNUSABLE_MEMORY;
    1.14 +			dom_md->phys_addr = start;
    1.15 +			dom_md->virt_addr = 0;
    1.16 +			dom_md->num_pages = (end - start) >> EFI_PAGE_SHIFT;
    1.17 +			dom_md->attribute = EFI_MEMORY_WB;
    1.18 +			num_mds++;
    1.19  			break;
    1.20  
    1.21  		default: