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>
Showing
- Documentation/virtual/kvm/locking.txt 1 addition, 3 deletionsDocumentation/virtual/kvm/locking.txt
- arch/s390/kvm/kvm-s390.c 2 additions, 2 deletionsarch/s390/kvm/kvm-s390.c
- arch/x86/kvm/mmu.c 2 additions, 2 deletionsarch/x86/kvm/mmu.c
- arch/x86/kvm/x86.c 7 additions, 7 deletionsarch/x86/kvm/x86.c
- include/linux/kvm_host.h 1 addition, 1 deletioninclude/linux/kvm_host.h
- virt/kvm/kvm_main.c 15 additions, 15 deletionsvirt/kvm/kvm_main.c
Loading
Please register or sign in to comment