KVM: mmu_notifier: Flush TLBs before releasing mmu_lock
commit6429d8675607e080deb716830f97ee0e78c991df
authorTakuya Yoshikawa <yoshikawa.takuya@oss.ntt.co.jp>
Wed, 9 May 2012 13:10:40 +0000 (9 16:10 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 12 May 2012 16:32:19 +0000 (12 09:32 -0700)
tree46c00b117d291c98b583d18f1237f8b06d098b9f
parent87a6c3e2b97b6556a7184a198d7b862b101c24cd
KVM: mmu_notifier: Flush TLBs before releasing mmu_lock

(cherry picked from commit 565f3be2174611f364405bbea2d86e153c2e7e78)

Other threads may process the same page in that small window and skip
TLB flush and then return before these functions do flush.

Signed-off-by: Takuya Yoshikawa <yoshikawa.takuya@oss.ntt.co.jp>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
virt/kvm/kvm_main.c