WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] [IA64] Fix dom0vp_expose_p2m

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] [IA64] Fix dom0vp_expose_p2m
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 18 Jan 2007 21:10:37 -0800
Delivery-date: Thu, 18 Jan 2007 21:12:08 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] [IA64] Fix dom0vp_expose_p2m, Xen patchbot-unstable <=