KVM: MMU: Add locking around kvm_mmu_slot_remove_write_access()
authorAvi Kivity <avi@qumranet.com>
Thu, 6 Aug 2009 17:39:46 +0000 (14:39 -0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 9 Sep 2009 03:17:04 +0000 (20:17 -0700)
commitc832f513b1ebe93e0a2c71a98f319da4ce560f7f
tree7812d6cc3fde7fa6e3619a1fd21adaf8d66c69d6
parent2b52d454ea2217f9422aee3847aa4678e93fa9e0
KVM: MMU: Add locking around kvm_mmu_slot_remove_write_access()

(cherry picked from commit 2245a28fe2e6fdb1bdabc4dcde1ea3a5c37e2a9e)

It was generally safe due to slots_lock being held for write, but it wasn't
very nice.

Signed-off-by: Avi Kivity <avi@qumranet.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/x86/kvm/mmu.c