From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f73.google.com (mail-pj1-f73.google.com [209.85.216.73]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9838D28B3EC for ; Tue, 29 Jul 2025 22:55:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.73 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753829744; cv=none; b=nWW19+T7kP6RvyNM0iyiCUYLGoV8Qt7qX28yehjcuMUyIqli3YAADlbYQ8FveoCThjhmQrwKhmXl6t7UjdynNkVP4EoDiszyazC1JFk8K7SFlFNa/0nGnw+U6ircFH4bmMJYONs4O+gSs9oK0XjpcFG/i75kWktkDV0noVgKW88= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753829744; c=relaxed/simple; bh=5XaLz6TgyathNJqnhdFXTkNHqph5QPuoYA9YQ+u2AWk=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=HzK6qJ+9QXZr7DQU1bKhLgqknpZIs1Wi2RwlmzO+Gc8TRQpyp4z6ryWRQ9IibA/MOZtDl+Zyl/7koJB5lk1XJy1WTqh8UCdSB1NSfjGQMr0qk9P4ZAIPh0DWU2ly/Jqt2WWe6XUqV1pqakyG4QXR7GO0L+dg4u1rlyKyS9U0kcY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--seanjc.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=Tr+kgpcp; arc=none smtp.client-ip=209.85.216.73 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--seanjc.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="Tr+kgpcp" Received: by mail-pj1-f73.google.com with SMTP id 98e67ed59e1d1-31f322718faso1067899a91.0 for ; Tue, 29 Jul 2025 15:55:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1753829742; x=1754434542; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:reply-to:from:to:cc:subject:date:message-id:reply-to; bh=jzYeQ19SvsGHPOnRphF4Uobk/zE+UGMKVRi+nf13iRw=; b=Tr+kgpcpBNFLBAcgmWavkod0FfN2JvTQIfSFbeHwO47iF5hixJxEkzJeEc5JFEl3hh r4jaXchvJKfqappSVFhqoThP997pOP0L0KS/90xYeH0rPtCsmC6D8hHHLrWlcVWQEQbh 88Z0mlaAuE6AN/n5hMDJYQ8xAz3tDzHBQmvyKOcBJc1KNHQRAmwIbzlZhYYVsHPDiJ5q CGoGMwA5nOYl5/IchONPu9iqJuGCrNHGZyRRmHj7vmaM0v/rjas83w7DEedlNccC/LqN h/yK9SW7oa052kNfJXygic5g/yRBvAHCWN3nQz6pgdpI2adyECGgorjab+JAq5S5BHHd 4hjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1753829742; x=1754434542; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:reply-to:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=jzYeQ19SvsGHPOnRphF4Uobk/zE+UGMKVRi+nf13iRw=; b=QGVc5Lqa/x5KGQOPzSOJsULSrIoc5ml93kmujd+AUWCohTZy/bniYOhfWFx290CcNf +6YiV7Z8JnNC/qYOYQAoXgnes3moREgAserORRAB1DAxT49lrkjeVyEJY8iL3mUMXyVP Z3A64Fxv7whFnmkudYkKec5/bfOxAdSDqouIPZ6Unh2bbR6IoG58BqQrvKs3lHvxmOtz D0mrLp46kkDM/zQolSWM0FUKsMThiEcCNFhmLf9ZxVVC8ggjDRqRweXAgC4AoeZx+wZS Fo1O/J2mGCcDPWwZ8sTmZ/u9OHkxutLGuSBxoIYXIyQmhEvUW2NSo4uq1dc31IziONtb h0ag== X-Gm-Message-State: AOJu0YxyP1iNYQmc3yfaxYUhb+y5Ys/ac9ZN3x2QnFbTXdGwfLtNhtV4 gkAWkdylbP20zrTghK2JstuJ+1lJzC1Y73TrgHPlGn/qEGeNqm/rVXZoqu5lJVQBLu78ByPQdR6 d+GGLdg== X-Google-Smtp-Source: AGHT+IFn2WAK9ukizMY0dgeyzampJaEckC2xblRT2k3Bk2uKavbOCAt+9mg9yLDOobFQoDGRUwGnRmEVCVE= X-Received: from pjoa9.prod.google.com ([2002:a17:90a:8c09:b0:31e:fac4:4723]) (user=seanjc job=prod-delivery.src-stubby-dispatcher) by 2002:a17:90b:1dc1:b0:31c:36f5:d95 with SMTP id 98e67ed59e1d1-31f5de2f372mr1596778a91.2.1753829741953; Tue, 29 Jul 2025 15:55:41 -0700 (PDT) Reply-To: Sean Christopherson Date: Tue, 29 Jul 2025 15:54:38 -0700 In-Reply-To: <20250729225455.670324-1-seanjc@google.com> Precedence: bulk X-Mailing-List: kvm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20250729225455.670324-1-seanjc@google.com> X-Mailer: git-send-email 2.50.1.552.g942d659e1b-goog Message-ID: <20250729225455.670324-8-seanjc@google.com> Subject: [PATCH v17 07/24] KVM: Fix comments that refer to slots_lock From: Sean Christopherson To: Paolo Bonzini , Marc Zyngier , Oliver Upton , Sean Christopherson Cc: kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, linux-kernel@vger.kernel.org, Ira Weiny , Gavin Shan , Shivank Garg , Vlastimil Babka , Xiaoyao Li , David Hildenbrand , Fuad Tabba , Ackerley Tng , Tao Chan , James Houghton Content-Type: text/plain; charset="UTF-8" From: Fuad Tabba Fix comments so that they refer to slots_lock instead of slots_locks (remove trailing s). Reviewed-by: David Hildenbrand Reviewed-by: Ira Weiny Reviewed-by: Gavin Shan Reviewed-by: Shivank Garg Reviewed-by: Vlastimil Babka Reviewed-by: Xiaoyao Li Signed-off-by: Fuad Tabba Signed-off-by: Sean Christopherson --- include/linux/kvm_host.h | 2 +- virt/kvm/kvm_main.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h index 4c5e0a898652..5c25b03d3d50 100644 --- a/include/linux/kvm_host.h +++ b/include/linux/kvm_host.h @@ -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]; diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c index 25a94eed75fd..aa86dfd757db 100644 --- a/virt/kvm/kvm_main.c +++ b/virt/kvm/kvm_main.c @@ -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); -- 2.50.1.552.g942d659e1b-goog