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)
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>

No differences found