# HG changeset patch # User yamahata@xxxxxxxxxxxxx # Date 1167901217 -32400 # Node ID 9e1ab89735c2b20c14783633609dcdaa2347d7e5 # Parent 3b02c5420099e123c600e1fb745c29b6e2a183eb fix dom0vp_expose_p2m. It assumes that memory is populated not-spasely. However with dom0 builder modification this assumption became not-always true. Make dom0vp_expose_p2m() allow spasely populated memory. PATCHNAME: spase_memory_dom0vp_expose_p2m Signed-off-by: Isaku Yamahata diff -r 3b02c5420099 -r 9e1ab89735c2 xen/arch/ia64/xen/mm.c --- a/xen/arch/ia64/xen/mm.c Wed Dec 27 18:43:12 2006 +0900 +++ b/xen/arch/ia64/xen/mm.c Thu Jan 04 18:00:17 2007 +0900 @@ -1544,8 +1544,7 @@ dom0vp_expose_p2m(struct domain* d, for (i = 0; i < expose_num_pfn / PTRS_PER_PTE + 1; i++) { assign_pte = lookup_noalloc_domain_pte(d, (assign_start_gpfn + i) << PAGE_SHIFT); - BUG_ON(assign_pte == NULL); - if (pte_present(*assign_pte)) { + if (assign_pte == NULL || pte_present(*assign_pte)) { continue; } if (expose_p2m_page(d, (assign_start_gpfn + i) << PAGE_SHIFT,