From: Julien Grall Date: Sun, 7 Apr 2019 19:59:22 +0000 (+0100) Subject: xen/arm32: mm: Avoid to zero and clean cache for CPU0 domheap X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=4bfb26e419b73c28a935cce14ac3a63be9f3c1ba;p=people%2Fsstabellini%2Fxen-unstable.git%2F.git xen/arm32: mm: Avoid to zero and clean cache for CPU0 domheap The page-table walker is configured to use the same shareability and cacheability as the access performed when updating the page-tables. This means cleaning the cache for CPU0 domheap is unnecessary. Furthermore, CPU0 page-tables are part of Xen binary and will already be zeroed before been used. So it is pointless to zero the domheap again. 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 bd1942f7f1..ee72fb5e8f 100644 --- a/xen/arch/arm/mm.c +++ b/xen/arch/arm/mm.c @@ -696,11 +696,6 @@ void __init setup_pagetables(unsigned long boot_phys_offset) #ifdef CONFIG_ARM_32 per_cpu(xen_pgtable, 0) = cpu0_pgtable; per_cpu(xen_dommap, 0) = cpu0_dommap; - - /* Make sure it is clear */ - memset(this_cpu(xen_dommap), 0, DOMHEAP_SECOND_PAGES*PAGE_SIZE); - clean_dcache_va_range(this_cpu(xen_dommap), - DOMHEAP_SECOND_PAGES*PAGE_SIZE); #endif }