From mboxrd@z Thu Jan 1 00:00:00 1970 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=1796050716; b=Z9t3peZoGETCbAo314OhCb/JaYc6Tk9PNCr9YV2bgKokc9V9yGQiErli/KeTCKo2jRJN AWHYo9QlkUzU14HwzGHf2fgFCzZaIrpw01459wRQqEC54eTaiFfAf5L5tdpXuelttxDS1 CJtlOyBYfmvizQXN3TgME01PnUKJWaxjveRRzRw1QHNWjvY4grE2dCDf1/n5kdp1SxFZU OGyEz22erdlSeKOhFMgckMQs3K0ghm+IT7TUmHq5bfcGLJI+C2VntX47ZYD0M2EksrTpp Ln47MYopFdhH5fF5tfsmrkZeDbg/DY+KirKOvI30KPWXEymEsSq/JsdNL0fdrPoAjgw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796050716; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=1nsq27iuwdLzJuLY4CgRKhYZCIc+MZP/w0aSeL9OgMs=; b=fTfqzCJd8kJg7DtAUIB7URK2Ib/7+FkPyAJzUxTaPSow50mKmSRGS11+Ls85JkMc0Fwl RlR4kNI2Tq6nIROC7svFkGrsQ6aF8vfnnKkRe1XTodQ0ecm6NhYxzH3yzaruFia0VHZH2 Oof3eebiWwMBpY05EW4ZHlwAxNwFQnVBS4SzpFLP4E1tyneycT8/k1fAkcaQACe/8pP5a AqDaUVj4M9D372Wq/7QmRAe+HrDxPHOnCN2pVrSCVYm8pQn0ri+Bv3+BqEI4w9Lqn4o6Z a4QokPGjQM/SFGNYAIZ5WuhOwDvWv0ACZDoVlxht2PayWBZTJMgrZikPqNvJzpElHow== 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=cOLcrUlS; 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 F1037606A325; Mon, 30 Nov 2026 14:58:35 +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=cOLcrUlS Received: by smtp.kernel.org (Postfix) with ESMTPSA id ED8AA1F00896; Mon, 30 Nov 2026 14:58:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796050715; bh=1nsq27iuwdLzJuLY4CgRKhYZCIc+MZP/w0aSeL9OgMs=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=cOLcrUlS0hIi3zbfEOpEgCpC6GF0Ex/qFJWw6bxa6GgRxPTEcqyjWSeFKO5bA8rno 677yOlzmZzE1SZlUgoAYPuk0SnsK6av9Ntuj/h4Z2n9nnZUfkgOAsUsc7vgADdbJyx lBrmciPgR14M8Kx2eGOSRjM+CJnYTFXyh/wf0rIWMrLD36+OyHwNnA1EekH3SS6e9k RS/ZOlEuzslcRG735HMve2PfsrZsI/5DvZ/KC41WZoWh0Xos0byRO3nDS5ZKyQpPgZ +WMXItNIE4AfAGc9RrlF8YWHKD7lF2l1bvCpfeUeXlikFj2z6angN44DBSbvXwrcyg NGnpuAmxjYgPg== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v5 01/11] KVM: arm64: guest_memfd: Drop mmap requirement for memslots Reply-To: sashiko-reviews@lists.linux.dev To: "Steven Price" , kvm@vger.kernel.org, kvmarm@lists.linux.dev Cc: "Oliver Upton" , "Marc Zyngier" In-Reply-To: <20261130142534.219108-2-steven.price@arm.com> References: <20261130142534.219108-1-steven.price@arm.com> <20261130142534.219108-2-steven.price@arm.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Mon, 30 Nov 2026 14:58:34 +0000 X-Mailing-List: kvm@vger.kernel.org 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: inappropriate Fixes: 32e200bd6e44 tag on feature prerequisite patch -- commit ed4ff3be33a7e9e639a23bf7c8763bdcd1447922 Author: Steven Price > KVM: arm64: guest_memfd: Drop mmap requirement for memslots > > Arm64 rejects guest_memfd-backed memslots unless generic KVM marks > them KVM_MEMSLOT_GMEM_ONLY. Without in-place conversion, that flag is > set for mmap-capable guest_memfd files, reflecting the original arm64 > requirement for userspace-mappable backing. > > Realm VMs also need to bind private-only guest_memfd files, which do > not support mmap. Their fault path obtains PFNs directly from > guest_memfd through kvm_gmem_get_pfn(), without a userspace mapping. > Remove the memslot restriction so these files can be used by Realms. > Userspace remains responsible for supplying backing for shared IPAs. > > Suggested-by: Ackerley Tng > Fixes: 32e200bd6e44 ("KVM: arm64: Enable support for guest_memfd backed m= emory") > Signed-off-by: Steven Price [Severity: Low] Should the Fixes: tag be dropped here? 32e200bd6e44 ("KVM: arm64: Enable support for guest_memfd backed memory") intentionally required kvm_memslot_is_gmem_only() because arm64 had no VMs supporting private-only memory. Removing that check for Realm VMs is feature enablement rather than a bug fix, and the Fixes: tag can cause this patch to be backported to stable trees without Realm support or in-place conversion, allowing normal VMs to bind non-mappable private-only guest_memfd files and map private pages into shared stage-2 tables via gmem_abort(). --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261130142534.2191= 08-1-steven.price@arm.com?part=3D1