From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 8256AC021B1 for ; Thu, 20 Feb 2025 13:15:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type:MIME-Version: References:In-Reply-To:Subject:Cc:To:From:Message-ID:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=QoHy2TI8+udVQrgiPLJLYvcLmxJrVIvCTFBaYXdZcUM=; b=YqD6enrpxzqsXee073nWkoCAtq uZWp3dejbuG/AiSrPqpIcr8UUNMXUI8791P9P68KJfVc16doIFM94+UzmPnGn0ySpqDkcrXY+Jnju 0Gh8E0dHaBjrtf1UenqAVYtTicWmB7ILP2/cJkKYiIDKnoCgYLQBoSDr/J/Pp53l1opQy6x2934ST Sw/vB4I2mtK/RugFU+yb/MkXvSykKSCWHo7p3FKPGEwiQ/d3FlqjPIz4AYUxyQgfTBiq9CaxUfllz 4OPYNaCOFVWZWemZzbR8DPRfj2nst7Xjsfw6qGuoLKQc+Y2jcjXlvbLZ1XCjcgse2JU9lNmSGpbss DT5jbRvQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tl6OD-00000001017-1m8s; Thu, 20 Feb 2025 13:14:53 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tl6HL-00000000yL3-25tK for linux-arm-kernel@lists.infradead.org; Thu, 20 Feb 2025 13:07:48 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id AEC725C1024; Thu, 20 Feb 2025 13:07:07 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 80C50C4CED1; Thu, 20 Feb 2025 13:07:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1740056866; bh=3phxBuPQl5IUqfsL5Bd0aEC9fruBA7I5u9sq4ctskxE=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=hfii3kW8/0vshJPsTE+wkZxwjJtaIZlTEqiJM7ICrdaSR6troIiL4Cq+KFY+PY9OA 9yfVhYpoY4s1ak4pD+m2UbF+TwZQIlU2LlJlEOqanRHiVdu0JcP/xctki+F7WLRKbK lymCEnTOd5qzT+Ri6BkVf3a+5qp/8cVKXleRsfC9qJ7AhwK23rn0BmpLMuAkKdO2yg zcVnkod0cXzKKcfeNqpK3mwCzC79IAnucXI9L6c02Tyl8mUqprr/bix5z5ZG9Gpf9F eXkY0lwbdzyR5NIDLUZXiPf/vqrIKtzkK3yczVmmHjFTvY1ZKg/uKbJU7qFFpz7SBm EjjUhGOS6Ah9Q== Received: from sofa.misterjones.org ([185.219.108.64] helo=goblin-girl.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1tl6HI-006Cfk-7T; Thu, 20 Feb 2025 13:07:44 +0000 Date: Thu, 20 Feb 2025 13:07:43 +0000 Message-ID: <86v7t4rcgw.wl-maz@kernel.org> From: Marc Zyngier To: Oliver Upton Cc: kvmarm@lists.linux.dev, kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Joey Gouly , Suzuki K Poulose , Zenghui Yu , Eric Auger Subject: Re: [PATCH 00/14] KVM: arm64: NV userspace ABI In-Reply-To: References: <20250215173816.3767330-1-maz@kernel.org> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/29.4 (aarch64-unknown-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: oliver.upton@linux.dev, kvmarm@lists.linux.dev, kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, joey.gouly@arm.com, suzuki.poulose@arm.com, yuzenghui@huawei.com, eric.auger@redhat.com X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250220_050747_635967_E05D7270 X-CRM114-Status: GOOD ( 25.85 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Wed, 19 Feb 2025 23:17:31 +0000, Oliver Upton wrote: > > On Sat, Feb 15, 2025 at 05:38:02PM +0000, Marc Zyngier wrote: > > Since the previous incarnation of the ABI was proved to be subtly > > wrong, I have reworked it to be more in line with the current way KVM > > operates. > > > > No more late NV-specific adjustment nor writable ID_AA64MMFR0_EL1.VH. > > The NV configuration is now entirely selected from the vcpu flags. > > I've preserved the KVM_ARM_VCPU_EL2 flag which enables NV with VHE, > > and added KVM_ARM_VCPU_EL2_E2H0 which alters the NV behaviour to only > > allow nVHE guests without recursive NV support. > > > > This series is actually very little new code. The bulk of it is > > converting the feature downgrade to be per-idreg, essentially going > > back to the state before 44241f34fac96 ("KVM: arm64: nv: Use accessors > > for modifying ID registers"), only slightly modernised. This then > > becomes part of the reset value computing. > > > > The rest is simply what you'd expect in terms of being able to write > > the ID_AA64MMFR4_EL1.NV_frac field, making the correct bits RES0 when > > needed, probing for capabilities and handling the init flags. > > > > Patches on top of -rc2, with the integration branch at the usual > > location. > > This all looks reasonable to me. NV won't be ready for the limelight > this time around so unless someone shouts I plan on taking the first 12 > patches of this series in 6.15. Let me repost it first, as I fixed an embarrassing bug that led to mishandling of ID_UNALLOCATED() registers (solved by consolidating the ID_DESC() macro maze a bit further). Thanks, M. -- Without deviation from the norm, progress is not possible.