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

2021-04-12 Thread Jisheng Zhang
On Sun, 11 Apr 2021 14:41:07 -0700 (PDT) Palmer Dabbelt wrote: > > > On Sun, 28 Mar 2021 18:55:09 PDT (-0700), l...@jiuyang.me wrote: > > This patch implements flush_cache_vmap and flush_cache_vunmap for > > RISC-V, since these functions might modify PTE. Without this patch, > > SFENCE.VMA

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

2021-04-11 Thread Jiuyang Liu
On Sunday, April 11, 2021 9:41:07 PM UTC you wrote: > On Sun, 28 Mar 2021 18:55:09 PDT (-0700), l...@jiuyang.me wrote: > > This patch implements flush_cache_vmap and flush_cache_vunmap for > > RISC-V, since these functions might modify PTE. Without this patch, > > SFENCE.VMA won't be added to

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

2021-04-11 Thread Palmer Dabbelt
On Sun, 28 Mar 2021 18:55:09 PDT (-0700), l...@jiuyang.me wrote: This patch implements flush_cache_vmap and flush_cache_vunmap for RISC-V, since these functions might modify PTE. Without this patch, SFENCE.VMA won't be added to related codes, which might introduce a bug in some out-of-order

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

2021-04-01 Thread Christoph Hellwig
On Mon, Mar 29, 2021 at 01:55:09AM +, 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

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

2021-03-30 Thread Alex Ghiti
Hi Jiuyang, Le 3/28/21 à 9:55 PM, Jiuyang Liu a écrit : This patch implements flush_cache_vmap and flush_cache_vunmap for RISC-V, since these functions might modify PTE. Without this patch, SFENCE.VMA won't be added to related codes, which might introduce a bug in some out-of-order

[PATCH] implement flush_cache_vmap and flush_cache_vunmap for RISC-V

2021-03-28 Thread Jiuyang Liu
This patch implements flush_cache_vmap and flush_cache_vunmap for RISC-V, since these functions might modify PTE. Without this patch, SFENCE.VMA won't be added to related codes, which might introduce a bug in some out-of-order micro-architecture implementations. Signed-off-by: Jiuyang Liu ---