]> err.no Git - linux-2.6/commit
KVM: MMU: unify slots_lock usage
authorMarcelo Tosatti <marcelo@kvack.org>
Sat, 29 Mar 2008 23:17:59 +0000 (20:17 -0300)
committerAvi Kivity <avi@qumranet.com>
Sun, 27 Apr 2008 09:00:52 +0000 (12:00 +0300)
commit3200f405a1e8e06c8634f11d33614455baa4e6be
tree806116d2495dd7fd93b5c0db98a72fe4fa854787
parent25c5f225beda4fbea878ed8b6203ab4ecc7de2d1
KVM: MMU: unify slots_lock usage

Unify slots_lock acquision around vcpu_run(). This is simpler and less
error-prone.

Also fix some callsites that were not grabbing the lock properly.

[avi: drop slots_lock while in guest mode to avoid holding the lock
      for indefinite periods]

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
arch/x86/kvm/mmu.c
arch/x86/kvm/paging_tmpl.h
arch/x86/kvm/vmx.c
arch/x86/kvm/x86.c
include/asm-x86/kvm_host.h