mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
[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:
1 parent
0a15e93927
commit
2d869d45e5
1 file changed
+1
-1
@@ -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))
|
||||
|
||||