[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 Alex Williamson <alex.williamson@xxxxxx>
# Date 1181932715 21600
# Node ID fe42519fb10eba65cf7034e105738f71010933ca
# Parent  65956e1d1aec4fa7d67ca51fa28e0a344b4778e2
[IA64] Fix dom0vp_expose_p2m()

It exposes one more zero p2m page

Signed-off-by: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
---
 xen/arch/ia64/xen/mm.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -r 65956e1d1aec -r fe42519fb10e xen/arch/ia64/xen/mm.c
--- a/xen/arch/ia64/xen/mm.c    Fri Jun 15 12:36:04 2007 -0600
+++ b/xen/arch/ia64/xen/mm.c    Fri Jun 15 12:38:35 2007 -0600
@@ -1551,7 +1551,7 @@ dom0vp_expose_p2m(struct domain* d,
     }
 
     // expose p2m_pte_zero_page 
-    for (i = 0; i < expose_num_pfn / PTRS_PER_PTE + 1; i++) {
+    for (i = 0; i < (expose_num_pfn + PTRS_PER_PTE - 1) / PTRS_PER_PTE; i++) {
         assign_pte = lookup_noalloc_domain_pte(d, (assign_start_gpfn + i) <<
                                                PAGE_SHIFT);
         if (assign_pte == NULL || pte_present(*assign_pte))

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.