direct-io.hg

changeset 15368:fe42519fb10e

[IA64] Fix dom0vp_expose_p2m()

It exposes one more zero p2m page

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
author Alex Williamson <alex.williamson@hp.com>
date Fri Jun 15 12:38:35 2007 -0600 (2007-06-15)
parents 65956e1d1aec
children 3b51eebdf9ab
files xen/arch/ia64/xen/mm.c
line diff
     1.1 --- a/xen/arch/ia64/xen/mm.c	Fri Jun 15 12:36:04 2007 -0600
     1.2 +++ b/xen/arch/ia64/xen/mm.c	Fri Jun 15 12:38:35 2007 -0600
     1.3 @@ -1551,7 +1551,7 @@ dom0vp_expose_p2m(struct domain* d,
     1.4      }
     1.5  
     1.6      // expose p2m_pte_zero_page 
     1.7 -    for (i = 0; i < expose_num_pfn / PTRS_PER_PTE + 1; i++) {
     1.8 +    for (i = 0; i < (expose_num_pfn + PTRS_PER_PTE - 1) / PTRS_PER_PTE; i++) {
     1.9          assign_pte = lookup_noalloc_domain_pte(d, (assign_start_gpfn + i) <<
    1.10                                                 PAGE_SHIFT);
    1.11          if (assign_pte == NULL || pte_present(*assign_pte))