• Paolo Bonzini's avatar
    Documentation: kvm: fix SRCU locking order docs · 3a9ae31a
    Paolo Bonzini authored
    kvm->srcu is taken in KVM_RUN and several other vCPU ioctls, therefore
    vcpu->mutex is susceptible to the same deadlock that is documented
    for kvm->slots_lock.  The same holds for kvm->lock, since kvm->lock
    is held outside vcpu->mutex.  Fix the documentation and rearrange it
    to highlight the difference between these locks and kvm->slots_arch_lock,
    and how kvm->slots_arch_lock can be useful while processing a vmexit.
    Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
    3a9ae31a
locking.rst 13.1 KB