From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f74.google.com (mail-pj1-f74.google.com [209.85.216.74]) (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 CFB262F7F0E for ; Thu, 25 Jun 2026 18:17:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.74 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782411439; cv=none; b=nl+6XMypt0HnD6xrsh8gRRrGOgVdAy0M0+n8z8oWvZUDSxxYJIOFo2JsXOiiOZ76/hH3CypiLQ4dyxtv8DH7DEFN+XLUM/1O5On2rg4VRxJkUKmt3E8wf0ydvdrLz3U8iiDbpNJnI/bOMXQ67Slz2jgEGkJw3SRdVAmVGY/QLXw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782411439; c=relaxed/simple; bh=vKWkUzz4X0bpy1wS1bHDH15EShZ57erHcsR8b8E2gsw=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=ax2fLfa1yqPHIU6l1YsMSz0FdXL5eTIbdTDFpwZCJdo7GhKnNeIyxX3yL7ExhtkqKgGEqzTJmh2Gq5LmSHKx7A7BKf4TQmO/yMwhOcBzhRP67uLBp4+TsjGoZflID3AjEwD4swZEIo6M9LJ4HOeANvnawbro7joh00QEtWCr2Rg= 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=hOU0Q2Hm; arc=none smtp.client-ip=209.85.216.74 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="hOU0Q2Hm" Received: by mail-pj1-f74.google.com with SMTP id 98e67ed59e1d1-37c9127e316so66792a91.1 for ; Thu, 25 Jun 2026 11:17:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1782411437; x=1783016237; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=cYqoCrzIGCmqpOtcxPfNb8nePoxNc13ha9iTOF4jwXs=; b=hOU0Q2HmkNFGUqkZ3FNonKM8lq8EvJdzNGNL3bkZlBCRDSjgfdJ51xm5dfvl4n2BtJ BL56tVCv2n9ftbbsdctmVRful09Op/cniXgpKjPEmlxrkQlV3ibEW9lXTk2ugZWqzhya 2DiqFrIQjvYcwIB/x0qXItDecYyvSMiTyM6Z/nZVOHVGIsZMpBED6N+20gpi9Z1x3Vpu eopdn8oSbzC0IBpoK3JW6b8QMay1sMjErrtU4C3jN24xpWaNGU4lnTPiZMg/mk8pgiLM FcjyuaPI5MHgRmzuL6LDRwl2thmA/H7G/YeGQrUBjpzYnO8c4Xlh+k+yf2UETWODPdLQ 5dhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1782411437; x=1783016237; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=cYqoCrzIGCmqpOtcxPfNb8nePoxNc13ha9iTOF4jwXs=; b=BQCEPw4pQFDZxnkZFfZccxwhSMc4e6PmLUcCdZ6Il0AfJwg4ZRHaYy+qyH1xXN6m4t esIImZGikpcdXIQJxVY1qjp0Xidcxc1W1YfNhsL3N5/b1aKF6wogMS7oN/DcKEYK0XL/ bGBO8Nw4qSAcfyNcYMkcjkUZ7KBRKHLRa8TQDBnyYlfPpwwWoL9idVBOcycuaMN4gEi4 NhCHjV1BI1v1ewmiNBRGia69T5HruI/6WySStorzpuUCdtulUbJV3gXN/DswJMCDDBJs yIdzA7wIc1IJMBWbGKpBu/+57NIIoAiY8pVIP4ijgiF/NDZmvyCTqSZ6mHgWV9YZq7Jq BQ7Q== X-Forwarded-Encrypted: i=1; AHgh+RpMRKtGDzNnfnAZ/p4qw0X7eqaxrGeWlzcNWeejub1zUrxo4RePZPbkzqx6ZRVIe4GOwhXVjXgEzB6pUmw=@vger.kernel.org X-Gm-Message-State: AOJu0Yzjw+zHBVnHRzHnQIdowydZvsuUm1q2S23iKCknjijscFovpssW rY56o4kSZeicYziuAgcxEC4uBw1LUXEIIS0w43qhxRikwXVUoyPDhoX9W7g/tXqKTv+8Ah3dezy +pJ/BaQ== X-Received: from pjblx10.prod.google.com ([2002:a17:90b:4b0a:b0:37d:8022:9ef5]) (user=seanjc job=prod-delivery.src-stubby-dispatcher) by 2002:a17:90b:5108:b0:36c:e254:4db with SMTP id 98e67ed59e1d1-37df9f646f7mr3203405a91.6.1782411436892; Thu, 25 Jun 2026 11:17:16 -0700 (PDT) Date: Thu, 25 Jun 2026 11:17:16 -0700 In-Reply-To: <20260527-kvm-locking-docs-v1-8-4fe8b602ff47@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20260527-kvm-locking-docs-v1-0-4fe8b602ff47@google.com> <20260527-kvm-locking-docs-v1-8-4fe8b602ff47@google.com> Message-ID: Subject: Re: [PATCH RFC 08/12] Documentation: KVM: Add example for kvm->srcu in relation to mutex/lock From: Sean Christopherson To: Ackerley Tng Cc: Paolo Bonzini , Jonathan Corbet , Shuah Khan , Tianrui Zhao , Bibo Mao , Huacai Chen , WANG Xuerui , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , Fuad Tabba , vannapurve@google.com, x86@kernel.org, "H. Peter Anvin" , kvm@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, loongarch@lists.linux.dev Content-Type: text/plain; charset="us-ascii" On Wed, May 27, 2026, Ackerley Tng wrote: > Add example of where vcpu->mutex and kvm->slots_lock are held while calling > synchronize_srcu(&kvm->srcu) to concretely show where the synchronization > primitives overlap. Sorry, but NAK. This is too x86-centric, and IMO the risk of the documentation becoming stale and confusing outweighs any benefits from providing an incomplete example. Because like the kvm_usage_count stuff, I know the code in question, and the example confused me and makes it harder to understand the rule(s).