flush_icache_user_range
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Quoted 8 lines
The patch below changes
access_one_pageinkernel/ptrace.cto use a new function,flush_icache_user_range, instead offlush_icache_pageas at present. The reason for making this change is thatflush_icache_pageis also called indo_no_pageanddo_swap_page, where it does a fundamentally different job. Decoupling the two makes it possible to improve performance, because we can makeflush_icache_pagedo the flush only when needed.
Could you also check map_user_kiobuf()?
map_user_kiobuf() calls flush_dcache_page() - if I understand cachetlb.txt correctly that function is only suitable for dcache/mmap cache coherency, it's not suitable for anon pages. But map_user_kiobuf() must support arbitrary pages.
And unmap_kiobuf doesn't contain a single cache flush.
--
Manfred