From: awilliam@xenbuild2.aw Date: Wed, 31 Jan 2007 06:35:32 +0000 (-0700) Subject: [IA64] Include dummy EFI memory descriptors for unmapped ranges X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~15369 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=0bf55ad11aee51ec964904535b7a9ba0b694870f;p=xen.git [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 --- diff --git a/xen/arch/ia64/xen/dom_fw.c b/xen/arch/ia64/xen/dom_fw.c index b122a793ca..8130486472 100644 --- a/xen/arch/ia64/xen/dom_fw.c +++ b/xen/arch/ia64/xen/dom_fw.c @@ -599,7 +599,17 @@ complete_dom0_memmap(struct domain *d, case EFI_UNUSABLE_MEMORY: case EFI_PAL_CODE: - /* Discard. */ + /* + * We don't really need these, but holes in the + * memory map may cause Linux to assume there are + * uncacheable ranges within a granule. + */ + dom_md->type = EFI_UNUSABLE_MEMORY; + dom_md->phys_addr = start; + dom_md->virt_addr = 0; + dom_md->num_pages = (end - start) >> EFI_PAGE_SHIFT; + dom_md->attribute = EFI_MEMORY_WB; + num_mds++; break; default: