Re: [PATCH kernel v2 2/6] KVM: PPC: Use RCU for arch.spapr_tce_tables

2016-01-24 Thread David Gibson
On Thu, Jan 21, 2016 at 06:39:33PM +1100, Alexey Kardashevskiy wrote: > At the moment spapr_tce_tables is not protected against races. That's not really true - it's protected by the kvm->lock mutex. > This makes > use of RCU-variants of list helpers. As some bits are executed in real > mode, this

[PATCH kernel v2 2/6] KVM: PPC: Use RCU for arch.spapr_tce_tables

2016-01-20 Thread Alexey Kardashevskiy
At the moment spapr_tce_tables is not protected against races. This makes use of RCU-variants of list helpers. As some bits are executed in real mode, this makes use of just introduced list_for_each_entry_rcu_notrace(). This converts release_spapr_tce_table() to a RCU scheduled handler. Signed-of