]> xenbits.xensource.com Git - xen.git/commitdiff
xen/arm32: mm: Avoid cleaning the cache for secondary CPUs page-tables
authorJulien Grall <julien.grall@arm.com>
Sun, 21 Apr 2019 18:53:12 +0000 (19:53 +0100)
committerJulien Grall <julien.grall@arm.com>
Thu, 13 Jun 2019 12:07:58 +0000 (13:07 +0100)
The page-table walker is configured by TCR_EL2 to use the same
shareability and cacheability as the access performed when updating the
page-tables. This means cleaning the cache for secondary CPUs runtime
page-tables is unnecessary.

Signed-off-by: Julien Grall <julien.grall@arm.com>
Reviewed-by: Andrii Anisov <andrii_anisov@epam.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
xen/arch/arm/mm.c

index 8751d763fba761c84a59145dc19a336a36bfac9f..7ed8400993100011440bae757c6ae988e669366f 100644 (file)
@@ -738,9 +738,6 @@ int init_secondary_pagetables(int cpu)
         write_pte(&first[first_table_offset(DOMHEAP_VIRT_START+i*FIRST_SIZE)], pte);
     }
 
-    clean_dcache_va_range(first, PAGE_SIZE);
-    clean_dcache_va_range(domheap, DOMHEAP_SECOND_PAGES*PAGE_SIZE);
-
     per_cpu(xen_pgtable, cpu) = first;
     per_cpu(xen_dommap, cpu) = domheap;