From: Julien Grall Date: Sun, 21 Apr 2019 18:53:12 +0000 (+0100) Subject: xen/arm32: mm: Avoid cleaning the cache for secondary CPUs page-tables X-Git-Tag: 4.13.0-rc1~753 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=9bd8d268d8b586ad6948feb42f709df39271d7c4;p=xen.git xen/arm32: mm: Avoid cleaning the cache for secondary CPUs page-tables 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 Reviewed-by: Andrii Anisov Reviewed-by: Stefano Stabellini --- diff --git a/xen/arch/arm/mm.c b/xen/arch/arm/mm.c index 8751d763fb..7ed8400993 100644 --- a/xen/arch/arm/mm.c +++ b/xen/arch/arm/mm.c @@ -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;