kvm: Convert kvm_lock to a mutex
authorJunaid Shahid <junaids@google.com>
Fri, 4 Jan 2019 01:14:28 +0000 (17:14 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 5 Jun 2019 12:14:50 +0000 (14:14 +0200)
commit0d9ce162cf46c99628cc5da9510b959c7976735b
treecb7670bedf8c614aa20313b95456f942fd16b6d4
parent1ae4de23eddef465104277e79fa669bec7b3d288
kvm: Convert kvm_lock to a mutex

It doesn't seem as if there is any particular need for kvm_lock to be a
spinlock, so convert the lock to a mutex so that sleepable functions (in
particular cond_resched()) can be called while holding it.

Signed-off-by: Junaid Shahid <junaids@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Documentation/virtual/kvm/locking.txt
arch/s390/kvm/kvm-s390.c
arch/x86/kvm/mmu.c
arch/x86/kvm/x86.c
include/linux/kvm_host.h
virt/kvm/kvm_main.c