diff options
| author | Yangyu Chen <[email protected]> | 2024-01-09 18:48:59 +0000 |
|---|---|---|
| committer | Palmer Dabbelt <[email protected]> | 2024-03-27 14:29:27 +0000 |
| commit | 542124fc0d5cccea273bccf2ee58545ac17aad3f (patch) | |
| tree | 379b39aa329dfbbc4e7f711675719c189c28dd22 /scripts/generate_rust_target.rs | |
| parent | riscv: remove unused header (diff) | |
| download | kernel-542124fc0d5cccea273bccf2ee58545ac17aad3f.tar.gz kernel-542124fc0d5cccea273bccf2ee58545ac17aad3f.zip | |
RISC-V: only flush icache when it has VM_EXEC set
As I-Cache flush on current RISC-V needs to send IPIs to every CPU cores
in the system is very costly, limiting flush_icache_mm to be called only
when vma->vm_flags has VM_EXEC can help minimize the frequency of these
operations. It improves performance and reduces disturbances when
copy_from_user_page is needed such as profiling with perf.
For I-D coherence concerns, it will not fail if such a page adds VM_EXEC
flags in the future since we have checked it in the __set_pte_at function.
Signed-off-by: Yangyu Chen <[email protected]>
Reviewed-by: Alexandre Ghiti <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Palmer Dabbelt <[email protected]>
Diffstat (limited to 'scripts/generate_rust_target.rs')
0 files changed, 0 insertions, 0 deletions
