KVM: Make kvm_mmu_slot_remove_write_access() take mmu_lock by itself
authorTakuya Yoshikawa <yoshikawa_takuya_b1@lab.ntt.co.jp>
Tue, 8 Jan 2013 10:46:48 +0000 (19:46 +0900)
committerGleb Natapov <gleb@redhat.com>
Mon, 14 Jan 2013 09:14:17 +0000 (11:14 +0200)
commit9d1beefb71146bbf5f820ab17c450808b0d0b2df
treed4563459cf9c07b520da4eddc374104c23466db2
parentb34cb590fb099f7929dd78d9464b70319ee12a98
KVM: Make kvm_mmu_slot_remove_write_access() take mmu_lock by itself

Better to place mmu_lock handling and TLB flushing code together since
this is a self-contained function.

Reviewed-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Takuya Yoshikawa <yoshikawa_takuya_b1@lab.ntt.co.jp>
Signed-off-by: Gleb Natapov <gleb@redhat.com>
arch/x86/kvm/mmu.c
arch/x86/kvm/x86.c