question about arch/riscv/kvm/mmu.c
Julia Lawall
julia.lawall at inria.fr
Thu Mar 31 01:02:25 PDT 2022
On Thu, 31 Mar 2022, Anup Patel wrote:
> On Thu, Mar 17, 2022 at 2:40 AM Julia Lawall <julia.lawall at inria.fr> wrote:
> >
> > Hello,
> >
> > The function kvm_riscv_stage2_map contains the code:
> >
> > mmu_seq = kvm->mmu_notifier_seq;
> >
> > I noticed that in every other place in the kernel where the
> > mmu_notifier_seq field is read, there is a read barrier after it. Is
> > there some reason why it is not necessary here?
>
> When I did the initial porting of KVM RISC-V (2 years back), I did
> not see such a barrier being used along with mmu_notifier_seq
> field hence the current code.
>
> I am certainly okay adding it to be consistent with other architectures.
>
> Can you send a patch for this ?
Sure, will do.
julia
>
> Thanks,
> Anup
>
> >
> > thanks,
> > julia
> >
> > --
> > kvm-riscv mailing list
> > kvm-riscv at lists.infradead.org
> > http://lists.infradead.org/mailman/listinfo/kvm-riscv
>
More information about the kvm-riscv
mailing list