Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796302351; b=J5lqL+6+7Eat+uRZ5VfWI2acUKBSqG/MV43MZ9TtExc16FQTpCn1urJ6qiTq+W4JN4ms eBhhjg8q/tT+Kqs7YdN2J7ViufyHcrMqfiuLaXm7MHqcIcj97DufnV8iEcyLheuBO590n 3yRPkJfXzwVIE08h3n6KQP8mQ+lOVwBEufNgZPNfH4MXW9nPRPFsxHO3OIyBTp6vyMaZ8 gIRVAMcIkenuEaLB1lz/u4FG9/4CS0lcbuvkvzS3dLBqQh0sYhRLGEyf1qDx4iasu4etM e+62KcL/du82hncckQ2GT345bzXJ7f1CFwoE+TZGKhvLF6d9t3WbqxCLDRc7Iat8T/Q== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796302351; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=KCON45KvUMy/OintRMwUxJ5JZB1yrXFKOaB7pXLU7+Q=; b=gRPNQVjCc9017hvzJ+J6rChgAIidKLyNTwNAnRf2jb0cRJMYDHXBllCA6Diy+9F4WCYl t/0zVhqIEewkbka0qNMnFTgBOyxtweYFC7WBA93eIfzcYwg+RYtlXE20XXQa6KwVydukX NAa7ZPUvgoIFDRxYR6MTG1HBsXogXhLmlwBNbBnXq9l0oX6PrZArc8gPq7OZM4wBrK8ur MR1dLcna5izG+4dX7gH/H1DQNqEEs0kTf12T0w/LmT34BIqX8Y4u2B4CJAjyOL0qVjaJ9 gnmtq9M6/pJ3NtovCuyzGmVmEXwr+BRrGoSVsleYh11B7R3wkq3Szz1uoJpT23kgRkw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=hS0ZRixS; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BA286606A330 for ; Thu, 3 Dec 2026 12:52:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=hS0ZRixS Received: by smtp.kernel.org (Postfix) with ESMTPSA id 32DCD1F000C1; Thu, 3 Dec 2026 12:52:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796302351; bh=KCON45KvUMy/OintRMwUxJ5JZB1yrXFKOaB7pXLU7+Q=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=hS0ZRixSON/1WfQk74hfcRteGFAQGt+2hqz+PMozSICLg6KY3IHWcb4WUVTyOLPX3 N655h2VtZ1OP5G9IEClcE44Vi4NgmxPofLAaX9vHITOLXkp/oFoXoy3fd54ambU5To a88TpfF3GCrT+Z3DhLEuBrGlANlPDweDATeovibZgoavMccpAF2DOnuiPDJoEf0P0Z CB8BERPOpPWRelLjn0b3UzEANMOH8j+OSw9oimjE7ZfDKZjwP5qIrNGrQPRb0iSG3V 21wMY4qkw2b99sLt7r7EFRSoeSF9/RGZE7CF1ewu7UeX7robbnhrdXUh+zKW8s1555 a9IpWFILHEecA== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v6 03/24] KVM: arm64: Allow block-level stage-2 annotation Reply-To: sashiko-reviews@lists.linux.dev To: "Vincent Donnefort" , kvmarm@lists.linux.dev Cc: "Oliver Upton" , "Marc Zyngier" In-Reply-To: <20261203115209.1690207-4-vdonnefort@google.com> References: <20261203115209.1690207-1-vdonnefort@google.com> <20261203115209.1690207-4-vdonnefort@google.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Thu, 03 Dec 2026 12:52:30 +0000 X-Mailing-List: kvmarm@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Thank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [Low] KVM: arm64: commit log misstates block-split GFN annotation preservation -- commit 425d642812353599b5ac614893302091bf811b55 Author: Vincent Donnefort KVM: arm64: Allow block-level stage-2 annotation This commit drops force_pte from kvm_pgtable_stage2_annotate() and removes the annotation shortcut in stage2_leaf_mapping_allowed() so stage-2 annotations can be installed as block entries when alignment and size permi= t. > On host to guest donation, pKVM annotates the host stage-2 invalid > entries with the GFN. Now that the host stage-2 preserves annotations on > block split, we can allow these annotations at block-level. This enables > safe support for guest stage-2 huge mappings. [Severity: Low] Is the commit message accurate in stating that host stage-2 block-split preservation safely covers GFN-annotated guest entries? When stage2_map_walk_leaf() splits an idmap block, stage2_create_unlinked() copies the invalid block PTE into map_data.pte_annot, and stage2_map_walker_try_leaf() writes that same value to every child entry. That preserves uniform annotations such as PKVM_ID_HYP, but for PKVM_ID_GUEST blocks it would replicate the base GFN from host_stage2_encode_gfn_meta() into every sub-page instead of incrementing i= t. Clarifying that implicit block splits only preserve uniform annotations, rather than per-page GFN metadata, would avoid misleading future readers. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261203115209.1690= 207-1-vdonnefort@google.com?part=3D3