Re: [PATCH] implement flush_cache_vmap and flush_cache_vunmap for RISC-V

From: Christoph Hellwig
Date: Thu Apr 01 2021 - 02:38:14 EST


On Mon, Mar 29, 2021 at 01:55:09AM +0000, Jiuyang Liu wrote:
> +/*
> + * flush_cache_vmap and flush_cache_vunmap might modify PTE, needs SFENCE.VMA.
> + * - flush_cache_vmap is invoked after map_kernel_range() has installed the page table entries.
> + * - flush_cache_vunmap is invoked before unmap_kernel_range() deletes the page table entries
> + */

Please never ever write comments > 80 chars. And please read the
coding style document.