[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] [IA64] Fix dom0vp_expose_p2m
# HG changeset patch # User awilliam@xxxxxxxxxxxx # Date 1167952951 25200 # Node ID 4ef56c7cce12844c3a728553b8fa4c2bb67efc88 # Parent b1c00767c6ae8c383c9fb9dcd92e7acc3467ee95 [IA64] Fix dom0vp_expose_p2m dom0vp_expose_p2m() assumes that memory is populated non-sparsely. However with dom0 builder modification this assumption is not always true. Make dom0vp_expose_p2m() allow sparsely populated memory. Signed-off-by: Isaku Yamahata <yamahata@xxxxxxxxxxxxx> --- xen/arch/ia64/xen/mm.c | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff -r b1c00767c6ae -r 4ef56c7cce12 xen/arch/ia64/xen/mm.c --- a/xen/arch/ia64/xen/mm.c Thu Jan 04 16:17:37 2007 -0700 +++ b/xen/arch/ia64/xen/mm.c Thu Jan 04 16:22:31 2007 -0700 @@ -1439,10 +1439,9 @@ 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, p2m_pte_zero_page) < 0) { gdprintk(XENLOG_INFO, "%s failed to assign zero-pte page\n", __func__); _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |