The x86 lock ordering refers to kvm->arch.mmu_lock instead of kvm->mmu_lock. The entry for wakeup_vcpus_on_cpu_lock gives its type as spinlock_t instead of raw_spinlock_t, and its comment uses the list and lock names from before commit 12a8eee5686ef ("KVM: Move x86 VMX's posted interrupt list_head to vcpu_vmx"). Fix all three. Signed-off-by: Fuad Tabba --- Documentation/virt/kvm/locking.rst | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Documentation/virt/kvm/locking.rst b/Documentation/virt/kvm/locking.rst index 662231e958a07..df0db74630976 100644 --- a/Documentation/virt/kvm/locking.rst +++ b/Documentation/virt/kvm/locking.rst @@ -54,9 +54,9 @@ On x86: - vcpu->mutex is taken outside kvm->arch.hyperv.hv_lock and kvm->arch.xen.xen_lock -- kvm->arch.mmu_lock is an rwlock; critical sections for +- kvm->mmu_lock is an rwlock; critical sections for kvm->arch.tdp_mmu_pages_lock and kvm->arch.mmu_unsync_pages_lock must - also take kvm->arch.mmu_lock + also take kvm->mmu_lock Everything else is a leaf: no other lock is taken inside the critical sections. @@ -297,13 +297,13 @@ time it will be set using the Dirty tracking mechanism described above. ``wakeup_vcpus_on_cpu_lock`` ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -:Type: spinlock_t +:Type: raw_spinlock_t :Arch: x86 :Protects: wakeup_vcpus_on_cpu :Comment: This is a per-CPU lock and it is used for VT-d posted-interrupts. When VT-d posted-interrupts are supported and the VM has assigned - devices, we put the blocked vCPU on the list blocked_vcpu_on_cpu - protected by blocked_vcpu_on_cpu_lock. When VT-d hardware issues + devices, we put the blocked vCPU on the list wakeup_vcpus_on_cpu + protected by wakeup_vcpus_on_cpu_lock. When VT-d hardware issues wakeup notification event since external interrupts from the assigned devices happens, we will find the vCPU on the list to wakeup. -- 2.47.3