From: Marcelo Tosatti Date: Thu, 6 Aug 2009 17:40:07 +0000 (-0300) Subject: KVM: MMU: protect kvm_mmu_change_mmu_pages with mmu_lock X-Git-Tag: v2.6.27.32~18 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=27dd1a6f4fe1625b22bbd9fc63950732519c9976;p=pandora-kernel.git KVM: MMU: protect kvm_mmu_change_mmu_pages with mmu_lock (cherry picked from commit 7c8a83b75a38a807d37f5a4398eca2a42c8cf513) kvm_handle_hva, called by MMU notifiers, manipulates mmu data only with the protection of mmu_lock. Update kvm_mmu_change_mmu_pages callers to take mmu_lock, thus protecting against kvm_handle_hva. Signed-off-by: Marcelo Tosatti Signed-off-by: Avi Kivity Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed