From 0be739ee82472b189c3bc46813ea66c0c1d9f7a6 Mon Sep 17 00:00:00 2001 From: Stefano Stabellini Date: Thu, 24 Jan 2013 12:47:49 +0000 Subject: [PATCH] xen/arm: flush the entire dest_va 2MB mapping 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 Acked-by: Ian Campbell Committed-by: Ian Campbell --- xen/arch/arm/mm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/arch/arm/mm.c b/xen/arch/arm/mm.c index f5712f7007..5212670067 100644 --- a/xen/arch/arm/mm.c +++ b/xen/arch/arm/mm.c @@ -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; -- 2.39.5