Commit 82c92ed1357bca22a5d637fbb93dab3eb18a8e8c
Committed by
David Vrabel
1 parent
7be0772d19
Exists in
ti-lsk-linux-4.1.y
and in
10 other branches
xen: correct error for building p2m list on 32 bits
In xen_rebuild_p2m_list() for large areas of invalid or identity mapped memory the pmd entries on 32 bit systems are initialized wrong. Correct this error. Suggested-by: Boris Ostrovsky <boris.ostrovsky@oracle.com> Signed-off-by: Juergen Gross <jgross@suse.com> Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
arch/x86/xen/p2m.c
... | ... | @@ -378,7 +378,7 @@ |
378 | 378 | p2m_missing_pte : p2m_identity_pte; |
379 | 379 | for (i = 0; i < PMDS_PER_MID_PAGE; i++) { |
380 | 380 | pmdp = populate_extra_pmd( |
381 | - (unsigned long)(p2m + pfn + i * PTRS_PER_PTE)); | |
381 | + (unsigned long)(p2m + pfn) + i * PMD_SIZE); | |
382 | 382 | set_pmd(pmdp, __pmd(__pa(ptep) | _KERNPG_TABLE)); |
383 | 383 | } |
384 | 384 | } |