Skip to content

Commit 69116e0

Browse files
Fuad Tabbabonzini
authored andcommitted
KVM: Fix comments that refer to slots_lock
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>
1 parent 923310b commit 69116e0

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

include/linux/kvm_host.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -860,7 +860,7 @@ struct kvm {
860860
struct notifier_block pm_notifier;
861861
#endif
862862
#ifdef CONFIG_KVM_GENERIC_MEMORY_ATTRIBUTES
863-
/* Protected by slots_locks (for writes) and RCU (for reads) */
863+
/* Protected by slots_lock (for writes) and RCU (for reads) */
864864
struct xarray mem_attr_array;
865865
#endif
866866
char stats_id[KVM_STATS_NAME_SIZE];

virt/kvm/kvm_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ void kvm_flush_remote_tlbs_memslot(struct kvm *kvm,
331331
* All current use cases for flushing the TLBs for a specific memslot
332332
* are related to dirty logging, and many do the TLB flush out of
333333
* mmu_lock. The interaction between the various operations on memslot
334-
* must be serialized by slots_locks to ensure the TLB flush from one
334+
* must be serialized by slots_lock to ensure the TLB flush from one
335335
* operation is observed by any other operation on the same memslot.
336336
*/
337337
lockdep_assert_held(&kvm->slots_lock);

0 commit comments

Comments
 (0)