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 39C7DEB64DA for ; Wed, 12 Jul 2023 20:55:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Subject:Cc:To:From:Message-ID:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=vRL0N/7DtPPetGgqU0AKNL9LXtbzrmpzQvPzQiexVKM=; b=xe2cMueI7kpO9e OHbb5osaZ7WMB0Rh+VicM2p2pROTTOvKRymNetnJqjvOtIXhycbkQEE4uYX8KANPfl1rZxBkFc8cq giRehQU1J4mNiiLkEKKLnWej/SgFvNQUTIkHq+CiEYZC4n8K8Q0llblEIsxWiyRzALdcyWQLHxddN uwV5H+vGaMwzvrtVyyDgRxJhaL0b4RTfSDYyxAFG9KLXmEhSk9rlHPkAI1Ov1UmEZt2FFUFZ45UH1 IC1SniBd/3dJQZWvWE7RTH7/eniV0OtpNtZe5Do3UqseELSs875uLWVyi1uYT5Wpzhx/On1CO8W4V TWh4Hvgk4ZotPXlK9Dcw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qJgrT-001E5P-0z; Wed, 12 Jul 2023 20:54:59 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qJgrR-001E5C-2D for linux-arm-kernel@bombadil.infradead.org; Wed, 12 Jul 2023 20:54:57 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Type:MIME-Version:References: In-Reply-To:Subject:Cc:To:From:Message-ID:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=9adrGryVeZnLfAkhcn1tCKhgggaVz75rON99JLEliwY=; b=a57dHYj0lqORInck5HRUFTEzdQ 68pKaSjfo/dirKyXeYs9qO3D1b+EShkhvO0ZoJ/mf1gyiLiy2sUZZIvHobK/we/5/htVAQRMF0c5q uAnnwGmyJN/jTwGte131dSB7z2Fjvhrsv9f6eaWZXdAcFYMNykKtEUSIMlFq+U/ahk1yrPrXPpYjv J86dQFmHBuJNSn04E8Qxsx3lwp5BDR3NKRVLOYs/hqxQqW2mXcdRuCo8Ef0EfnuEN00M3ODjSuftx 9FJsvPUKxhRiTcSt4gv9Ka2uduj9Sy1II0xVTzheThDT4udsm2ZSNZcZA7aH3c3dUccCoAo6aY+83 61YZVGkw==; Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by desiato.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qJg6P-003lsx-0i for linux-arm-kernel@lists.infradead.org; Wed, 12 Jul 2023 20:06:25 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 21768618FE; Wed, 12 Jul 2023 20:06:12 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 84AB0C433C7; Wed, 12 Jul 2023 20:06:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689192371; bh=cHVf3yeITRqxsgrS58hExLzmnwwO0E8oGYcaFus6958=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=iAxENWyZywKL1WAKLtVXG4U2ZA0kPkAUMLVlQmxoI5hud4lfpY8qMgPPLjnjmAWuX SFkiuQMMmp16w9oOgxUBg4EsEt3ARlyN1HxV1Pw0IVNXsJT2SxrmkC2UgMZnFpXvtB EXHY2LLqYh+3TJTwXrWu+otMX8Ydq0w78lhdUXAB18XG52uy1WKNF+0SStvUKyGK+1 k86/tflefJrULaYJBDWJCp+TRbmwzfBgSgYSPQ85DeKck2GBd24fQyL0hwvtAXc/fa 5V17ighNR2SUV2g248JqcFHB3tY0XUQOtAjeXcfW20JZBvkZsJ9Ti2ZAM1zSS2fux+ FZHYJpy0Fx4+A== Received: from sofa.misterjones.org ([185.219.108.64] helo=wait-a-minute.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 1qJg6D-00CajL-5B; Wed, 12 Jul 2023 21:06:09 +0100 Date: Wed, 12 Jul 2023 21:06:08 +0100 Message-ID: <87edlcao9b.wl-maz@kernel.org> From: Marc Zyngier To: Mark Brown Cc: kvmarm@lists.linux.dev, kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Catalin Marinas , Eric Auger , Mark Rutland , Will Deacon , Alexandru Elisei , Andre Przywara , Chase Conklin , Ganapatrao Kulkarni , Darren Hart , Miguel Luis , James Morse , Suzuki K Poulose , Oliver Upton , Zenghui Yu Subject: Re: [PATCH 14/27] KVM: arm64: Restructure FGT register switching In-Reply-To: References: <20230712145810.3864793-1-maz@kernel.org> <20230712145810.3864793-15-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/28.2 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: broonie@kernel.org, kvmarm@lists.linux.dev, kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, catalin.marinas@arm.com, eric.auger@redhat.com, mark.rutland@arm.com, will@kernel.org, alexandru.elisei@arm.com, andre.przywara@arm.com, chase.conklin@arm.com, gankulkarni@os.amperecomputing.com, darren@os.amperecomputing.com, miguel.luis@oracle.com, james.morse@arm.com, suzuki.poulose@arm.com, oliver.upton@linux.dev, yuzenghui@huawei.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-20230712_210622_959491_E54CB5F3 X-CRM114-Status: GOOD ( 27.80 ) 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Wed, 12 Jul 2023 18:15:41 +0100, Mark Brown wrote: > > On Wed, Jul 12, 2023 at 03:57:57PM +0100, Marc Zyngier wrote: > > > As we're about to majorly extend the handling of FGT registers, > > restructure the code to actually save/restore the registers > > as required. This is made easy thanks to the previous addition > > of the EL2 registers, allowing us to use the host context for > > this purpose. > > > +/* > > + * FGT register definitions > > + * > > + * RES0 and polarity masks as of DDI0487J.a, to be updated as needed. > > + * We're not using the generated masks as they are usually ahead of > > + * the published ARM ARM, which we use as a reference. > > + * > > + * Once we get to a point where the two describe the same thing, we'll > > + * merge the definitions. One day. > > + */ > > What's the issue here? The generated definitions should be aligned with > what's published in DDI0601. That AIUI exists in large part due to > concerns people were having with the amount of time it can take to fold > new features into the ARM, it's official. For multiple reasons: - What's published as DDI0601 is a list of registers, without any context and no relation to the wider architecture (it is basically the XML dumped as a PDF). That's not enough to implement the architecture as it is missing all the content of the engineering specs, which are not public documents. - I have no motivation in supporting the latest and greatest. NV is hard enough without all the (still evolving) crop of 8.9/9.4 extensions. As long as what I have is a legal implementation and runs on the HW I have access to, that's good enough for me. - I want to look at a single document and support what's in there. Not two. Because it is hard enough to follow when you're implementing this crap, and even harder for someone trying to review it. So I firmly intend to totally ignore most of what's outside of the published ARM ARM unless it makes my life so much easier that I can't afford not to implement it. M. -- Without deviation from the norm, progress is not possible. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel