KVM: take mmu_lock when updating a deleted slot
authorMarcelo Tosatti <mtosatti@redhat.com>
Tue, 12 May 2009 21:55:44 +0000 (18:55 -0300)
committerAvi Kivity <avi@redhat.com>
Wed, 10 Jun 2009 08:48:54 +0000 (11:48 +0300)
commitb43b1901ad282aeb74161837fb403927102687a1
tree43b1b4537e620ce5c148e739c7588a279e76d7a5
parent7c8a83b75a38a807d37f5a4398eca2a42c8cf513
KVM: take mmu_lock when updating a deleted slot

kvm_handle_hva relies on mmu_lock protection to safely access
the memslot structures.

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
virt/kvm/kvm_main.c