]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
KVM: Fix comments that refer to slots_lock
authorFuad Tabba <tabba@google.com>
Tue, 29 Jul 2025 22:54:38 +0000 (15:54 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 27 Aug 2025 08:35:00 +0000 (04:35 -0400)
Fix comments so that they refer to slots_lock instead of slots_locks
(remove trailing s).

Reviewed-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Ira Weiny <ira.weiny@intel.com>
Reviewed-by: Gavin Shan <gshan@redhat.com>
Reviewed-by: Shivank Garg <shivankg@amd.com>
Reviewed-by: Vlastimil Babka <vbabka@suse.cz>
Reviewed-by: Xiaoyao Li <xiaoyao.li@intel.com>
Signed-off-by: Fuad Tabba <tabba@google.com>
Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-ID: <20250729225455.670324-8-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
include/linux/kvm_host.h
virt/kvm/kvm_main.c

index 4c5e0a8986523621bc79fed4195a882d45b2fdd2..5c25b03d3d50a8d2c23cba480e0aba86099bc690 100644 (file)
@@ -860,7 +860,7 @@ struct kvm {
        struct notifier_block pm_notifier;
 #endif
 #ifdef CONFIG_KVM_GENERIC_MEMORY_ATTRIBUTES
-       /* Protected by slots_locks (for writes) and RCU (for reads) */
+       /* Protected by slots_lock (for writes) and RCU (for reads) */
        struct xarray mem_attr_array;
 #endif
        char stats_id[KVM_STATS_NAME_SIZE];
index 25a94eed75fd69e1cd91931b9bab184c665748a7..aa86dfd757db5785a2484e4b0cb1e7a6c55ec6cc 100644 (file)
@@ -331,7 +331,7 @@ void kvm_flush_remote_tlbs_memslot(struct kvm *kvm,
         * All current use cases for flushing the TLBs for a specific memslot
         * are related to dirty logging, and many do the TLB flush out of
         * mmu_lock. The interaction between the various operations on memslot
-        * must be serialized by slots_locks to ensure the TLB flush from one
+        * must be serialized by slots_lock to ensure the TLB flush from one
         * operation is observed by any other operation on the same memslot.
         */
        lockdep_assert_held(&kvm->slots_lock);