[IA64] Fix dom0vp_expose_p2m()

It exposes one more zero p2m page

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
This commit is contained in:
Alex Williamson committed 2007-06-15 12:38:35 -06:00
1 parent 0a15e93927
commit 2d869d45e5
1 file changed
+1 -1
+1 -1
View File
@@ -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))
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.