]> xenbits.xensource.com Git - xen.git/commit
Allow control of icache invalidations when calling flush_page_to_ram()
authorPunit Agrawal <punit.agrawal@arm.com>
Fri, 26 May 2017 11:14:05 +0000 (12:14 +0100)
committerStefano Stabellini <sstabellini@kernel.org>
Tue, 6 Jun 2017 18:49:22 +0000 (11:49 -0700)
commit54b8651066e82f04db9d9e5b0cc02c26d39ae763
treeed8fe41dece62d168e36c4c99b451a1870abc9df
parent3d2010f9ffeacc8836811420460e15f2c1233695
Allow control of icache invalidations when calling flush_page_to_ram()

flush_page_to_ram() unconditionally drops the icache. In certain
situations this leads to execessive icache flushes when
flush_page_to_ram() ends up being repeatedly called in a loop.

Introduce a parameter to allow callers of flush_page_to_ram() to take
responsibility of synchronising the icache. This is in preparations for
adding logic to make the callers perform the necessary icache
maintenance operations.

Signed-off-by: Punit Agrawal <punit.agrawal@arm.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
xen/arch/arm/mm.c
xen/arch/arm/p2m.c
xen/common/page_alloc.c
xen/include/asm-arm/page.h
xen/include/asm-x86/flushtlb.h