]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit935aaddb436fb1ad50c386e5be71f52946637adb
treee31e48e6f1f810596b6c5ca9663c02c02ed319b5
parent2aa25642e21b29add0c0ace2e8e8c839d784aae6
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