[PATCH v3 12/14] KVM: Add barriers to allow mmu_notifier_retry to be used locklessly

Avi Kivity avi at redhat.com
Tue Dec 20 04:21:44 EST 2011


On 12/19/2011 07:18 PM, Alexander Graf wrote:
> On 12.12.2011, at 23:37, Paul Mackerras wrote:
>
> > This adds an smp_wmb in kvm_mmu_notifier_invalidate_range_end() and an
> > smp_rmb in mmu_notifier_retry() so that mmu_notifier_retry() will give
> > the correct answer when called without kvm->mmu_lock being held.
> > PowerPC Book3S HV KVM wants to use a bitlock per guest page rather than
> > a single global spinlock in order to improve the scalability of updates
> > to the guest MMU hashed page table, and so needs this.
> > 
> > Signed-off-by: Paul Mackerras <paulus at samba.org>
>
> Avi, mind to ack?
>

Acked-by: Avi Kivity <avi at redhat.com>

-- 
error compiling committee.c: too many arguments to function



More information about the Linuxppc-dev mailing list