Skip to content
Commit 3a9ae31a authored by Paolo Bonzini's avatar Paolo Bonzini
Browse files

Documentation: kvm: fix SRCU locking order docs



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>
parent 45e966fc
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment