From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id ED4522D9EDC; Wed, 27 May 2026 15:33:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779896004; cv=none; b=LuAIpVYgQKXjEDfi/laOYgDlvMiVdNMI23VkRw0Ym2zXXZL9iXiNU5KZdTkgqevT15MvhJupNTiGmDH/p3q0qaIRSM/gEZlU5CeaHY6gI6CJAwLrSXPrtEi2YpZZBLQ+qIQvDII9SEJUosgUS/8R/L7/AYk7GDG7keRTZgMGm40= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779896004; c=relaxed/simple; bh=eF5fEOWZsn5iEd6JrTeFCCBK6A3UIngZ9wzCS6q9kjw=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=KLtRCQO4rlmK2FA/P1QLSRzF/tI/cWZ1BPsv8mMF+6MkDM8dDux4HCOz/mgH3XrXOo7DTSzIcEvqlgrbgI/6PklQLh5p1zNglZr+5OrqkMY4UP/vN3u+Xj0TKpgY8JdZgIpyutrAxIKGy7059Ej+84FVDyfTLFdXWrgpE4yNTio= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=HzNMKTnH; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="HzNMKTnH" Received: by smtp.kernel.org (Postfix) with ESMTPS id B526DC2BCFA; Wed, 27 May 2026 15:33:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1779896002; bh=eF5fEOWZsn5iEd6JrTeFCCBK6A3UIngZ9wzCS6q9kjw=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=HzNMKTnH7LjMRKl96vGWtzp8Ea9tjVE6pAzMj0dRt83r8yIQ1zFguN4GOSKbadFNp X2V3BjYTnEfG4XfGYNZwE8GzKCO2GfbR+QnLfhe+qIgu0omOj3Na0XjQ9KtoLOy7sA dTR8VbdGjrDZfTH6Ue7Rz/0RtzfZqU6b26KCLqbKZdUFYug2x2U+X5s320dAgGfJzR GgC+V2AartD7uP1VOAHvAwP9jDeAGyn84zzNh2JCFwebylEvozyLyPtiXJevW731yK Gi26+gSMbzdvjHM4gkr6sL+jaSNILuds2Ulwv8Ew0vaJaHUymwSDsS7CS95h28kzb/ 185uJlcton7/Q== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id AD663CD5BD0; Wed, 27 May 2026 15:33:22 +0000 (UTC) From: Ackerley Tng via B4 Relay Date: Wed, 27 May 2026 08:33:17 -0700 Subject: [PATCH RFC 05/12] Documentation: KVM: Explain what rule the exception section is meant for Precedence: bulk X-Mailing-List: linux-doc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20260527-kvm-locking-docs-v1-5-4fe8b602ff47@google.com> References: <20260527-kvm-locking-docs-v1-0-4fe8b602ff47@google.com> In-Reply-To: <20260527-kvm-locking-docs-v1-0-4fe8b602ff47@google.com> To: Paolo Bonzini , Jonathan Corbet , Shuah Khan , Tianrui Zhao , Bibo Mao , Huacai Chen , WANG Xuerui , Sean Christopherson , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , Fuad Tabba , vannapurve@google.com, x86@kernel.org, "H. Peter Anvin" Cc: kvm@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, loongarch@lists.linux.dev, Ackerley Tng X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1779896001; l=866; i=ackerleytng@google.com; s=20260225; h=from:subject:message-id; bh=UhewnEFTG+HebdABX6t5eYYm+bNGAkoVsLLrTGAOeg4=; b=H1OQEdfNpvGS7THThfrjojW6x13TvDlSiVDOrcNRwD6ECzNiF+y3cEqXlnDWAXTlLltd+N+OR mklc0Q4Qr+BDr5L6d/govG1pkusRLLY1/lYMOt9RtFH8pqsWyDfELTw X-Developer-Key: i=ackerleytng@google.com; a=ed25519; pk=sAZDYXdm6Iz8FHitpHeFlCMXwabodTm7p8/3/8xUxuU= X-Endpoint-Received: by B4 Relay for ackerleytng@google.com/20260225 with auth_id=649 X-Original-From: Ackerley Tng Reply-To: ackerleytng@google.com From: Ackerley Tng The Exception section describes some exceptions but not the rule the exception is for. Add a paragraph to clarify that detail. Signed-off-by: Ackerley Tng --- Documentation/virt/kvm/locking.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Documentation/virt/kvm/locking.rst b/Documentation/virt/kvm/locking.rst index e349c2cb94943..5161636cec481 100644 --- a/Documentation/virt/kvm/locking.rst +++ b/Documentation/virt/kvm/locking.rst @@ -61,6 +61,10 @@ sections. 2. Exception ------------ +The general rule in KVM is that any modification to shadow page tables +(and their entries (SPTEs)) must be protected by ``kvm->mmu_lock``, +with the exceptions described below. + Fast page fault: Fast page fault is the fast path which fixes the guest page fault out of -- 2.54.0.823.g6e5bcc1fc9-goog