KVM: Simplify kvm->tlbs_dirty handling
authorTakuya Yoshikawa <yoshikawa_takuya_b1@lab.ntt.co.jp>
Tue, 18 Feb 2014 08:22:47 +0000 (17:22 +0900)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 18 Feb 2014 09:07:26 +0000 (10:07 +0100)
commit5befdc385ddb2d5ae8995ad89004529a3acf58fc
treee31e48e6f1f810596b6c5ca9663c02c02ed319b5
parentf18eb31f9df52c28ec86d18d72f66ef689878daa
KVM: Simplify kvm->tlbs_dirty handling

When this was introduced, kvm_flush_remote_tlbs() could be called
without holding mmu_lock.  It is now acknowledged that the function
must be called before releasing mmu_lock, and all callers have already
been changed to do so.

There is no need to use smp_mb() and cmpxchg() any more.

Signed-off-by: Takuya Yoshikawa <yoshikawa_takuya_b1@lab.ntt.co.jp>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/paging_tmpl.h
include/linux/kvm_host.h
virt/kvm/kvm_main.c