KVM: mmu_notifier: Flush TLBs before releasing mmu_lock
authorTakuya Yoshikawa <yoshikawa.takuya@oss.ntt.co.jp>
Fri, 10 Feb 2012 06:28:31 +0000 (15:28 +0900)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 30 May 2012 23:43:09 +0000 (00:43 +0100)
commit51155201f92e585d40d8921893a508e8b99b2d0e
tree752f5f5f25c940166d10d965f6ad5ba35da72e46
parent52c6b95f8a2edaff98b779f15b2f4d69b61b18b9
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: Ben Hutchings <ben@decadent.org.uk>
virt/kvm/kvm_main.c