]> xenbits.xensource.com Git - xen.git/commitdiff
xen/arm: flush the entire dest_va 2MB mapping
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>
Thu, 24 Jan 2013 12:47:49 +0000 (12:47 +0000)
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>
Thu, 24 Jan 2013 12:47:49 +0000 (12:47 +0000)
At the beginning of setup_pagetables we modify a 2MB mapping but we only
flush the first 4KB of it.

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Committed-by: Ian Campbell <ian.campbell@citrix.com>
xen/arch/arm/mm.c

index f5712f7007aaf3dedb0c85bf813bffcbb319b15c..52126700679a216776410c4deea5bb12313bfe65 100644 (file)
@@ -246,7 +246,7 @@ void __init setup_pagetables(unsigned long boot_phys_offset, paddr_t xen_paddr)
     dest_va = BOOT_MISC_VIRT_START;
     pte = mfn_to_xen_entry(xen_paddr >> PAGE_SHIFT);
     write_pte(xen_second + second_table_offset(dest_va), pte);
-    flush_xen_data_tlb_range_va(dest_va, PAGE_SIZE);
+    flush_xen_data_tlb_range_va(dest_va, SECOND_SIZE);
 
     /* Calculate virt-to-phys offset for the new location */
     phys_offset = xen_paddr - (unsigned long) _start;