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 C59A3CD5BAF for ; Fri, 22 May 2026 05:49:45 +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=E5sM9AUvuYdbGB4g9k8H+Hv5ClFSOJXofYXrX9huibQ=; b=ry7aRKy9PDAm6sKpixjlXUd2c8 mTp40IoqP1+jIxky1Pnnq+o860xHoDdml3gq3fFJtpt+441wOqdiAxncSU7JmOZ4J/WV2fwt/1XWY eMzGvPtbiUOYzSRq2YLx7gTpJJgSSf0eNjmH/l/IpWX7MLYY/mdAJT6Pt8IIwej/UayuLp7GOfbhL 5ruPOQv6CQbsmgaaXq8luXgVivSmV0MEpHcNMBcplajyIk76oAAiwMei08vgw1eRHjNmR3WwcmCWZ Gn7irMM8aknw/n7FafQVrBsovVfvCNvHBndEX0PhzX7hwyVqZRDUck2O7jAbQS9Gu2RIRPMBqTKYh PvXOrtYQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1wQIlN-00000009tzF-0Lvq; Fri, 22 May 2026 05:49:37 +0000 Received: from tor.source.kernel.org ([2600:3c04:e001:324:0:1991:8:25]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1wQIlL-00000009tyu-1QQ0 for linux-arm-kernel@lists.infradead.org; Fri, 22 May 2026 05:49:35 +0000 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by tor.source.kernel.org (Postfix) with ESMTP id 583AE60136; Fri, 22 May 2026 05:49:34 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0AA9F1F000E9; Fri, 22 May 2026 05:49:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1779428974; bh=E5sM9AUvuYdbGB4g9k8H+Hv5ClFSOJXofYXrX9huibQ=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=Jk4Ks+BI5b0v7Yq8P3JkHDjP1tsuruhcAbMdrFykwvGKU9wIHCcA0ppRRW9rWFErC N313Qt4P9HfEHxJJ+iTL9iZCqTUKUNtfMqFXScwk6BQw6X72h4Py/ZGeLRI5DRzTpH xncgim7ZoYUFgXoLFuTyL+bw78Ka7/SiliBzPLoGFY/d2tGK/zz24hEU1gouQzxbPI /lfYgnfpWcPZMPPtcj3IrPVtcPURdw5oet2RYP+QKt56i/JbnN7kBmnmIifRiVzmhJ HEhskgWEfhGs8Equp0nlEkkrzubybTUeRaB2L8Tn95VxTukZhsjz6TCOWDGqIq7pNK /+8Eo1uwZpKKg== Received: from sofa.misterjones.org ([185.219.108.64] helo=lobster-girl.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1wQIlH-000000056jh-2DhW; Fri, 22 May 2026 05:49:31 +0000 Date: Fri, 22 May 2026 06:52:48 +0100 Message-ID: <87lddc9ej3.wl-maz@kernel.org> From: Marc Zyngier To: Mark Rutland Cc: Mark Brown , Oliver Upton , Joey Gouly , Catalin Marinas , Suzuki K Poulose , Will Deacon , Paolo Bonzini , Jonathan Corbet , Shuah Khan , Dave Martin , Fuad Tabba , Ben Horgan , linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, linux-kernel@vger.kernel.org, kvm@vger.kernel.org, linux-doc@vger.kernel.org, linux-kselftest@vger.kernel.org, Peter Maydell , Eric Auger Subject: Re: [PATCH v10 19/30] KVM: arm64: Provide assembly for SME register access In-Reply-To: References: <20260306-kvm-arm64-sme-v10-0-43f7683a0fb7@kernel.org> <20260306-kvm-arm64-sme-v10-19-43f7683a0fb7@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/30.1 (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: mark.rutland@arm.com, broonie@kernel.org, oupton@kernel.org, joey.gouly@arm.com, catalin.marinas@arm.com, suzuki.poulose@arm.com, will@kernel.org, pbonzini@redhat.com, corbet@lwn.net, shuah@kernel.org, Dave.Martin@arm.com, tabba@google.com, ben.horgan@arm.com, linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, linux-kernel@vger.kernel.org, kvm@vger.kernel.org, linux-doc@vger.kernel.org, linux-kselftest@vger.kernel.org, peter.maydell@linaro.org, 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-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 Thu, 21 May 2026 15:51:26 +0100, Mark Rutland wrote: > > On Fri, Mar 06, 2026 at 05:01:11PM +0000, Mark Brown wrote: > > Provide versions of the SME state save and restore functions for the > > hypervisor to allow it to restore ZA and ZT for guests. > > > > Signed-off-by: Mark Brown > > --- > > arch/arm64/include/asm/kvm_hyp.h | 2 ++ > > arch/arm64/kvm/hyp/fpsimd.S | 23 +++++++++++++++++++++++ > > 2 files changed, 25 insertions(+) > > While this specific instance is simple enough, I don't think we should > continue to duplicate the low level save/restore routines between the > main kernel and KVM hyp code. > > I've sent a series that avoids the need for this, and cleans up some > other bits): > > https://lore.kernel.org/linux-arm-kernel/20260521132556.584676-1-mark.rutland@arm.com/ > > Assuming Marc and Oliver are on board, I'd prefer that we do that > cleanup first, and build the KVM SME support atop. Absolutely. The whole FP/SVE is still way too complicated, full of esoteric constructs, hard to audit, and I would really like to see it cleaned-up before stacking another layer on top. I've quickly eyeballed the KVM-specific patches yesterday, and nothing seem outlandish, so there is a good chance some of that could make it into 7.2. I plan to look at it again shortly. Thanks, M. -- Jazz isn't dead. It just smells funny.