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 14ECBD41D74 for ; Mon, 15 Dec 2025 09:33:59 +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=KHdeevIe8NHkoFOaNrfUPGdsq0hXHtYTp9IstBqo8Fk=; b=4ACUC8m3h1N4PBqSEbxdTUGQWZ bOhDZLiNOEEvBMaADNYESmOCuzzEgxO3QnoF7xd2c4ccobQKheBA6MwLBohLILkEqyd/XlQdK8l5j +giyGzag4FRnL5wFvgIGPdvDzltv3ecEiR176FBswIps0Sce56OHKkQgnO2BHDo4J4WMMarQBB2/D ihFtlRdIaeVO75PF3BHuzfph6cM1hcyCi5LDsrwnWI2hq1uhS3nO+BoC9dxTYea4Fk6+qezOykZIQ xPpdHk6A7wmbHwaXYZROE4wI22Ganj1jGZqFH87viskNhC6WHaF17/UIUFF/uhamLXHcEwVWg3XjJ fQnMLi+g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1vV4xl-00000003N5J-1k9h; Mon, 15 Dec 2025 09:33:53 +0000 Received: from tor.source.kernel.org ([172.105.4.254]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1vV4xk-00000003N4z-2F5E for linux-arm-kernel@lists.infradead.org; Mon, 15 Dec 2025 09:33:52 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by tor.source.kernel.org (Postfix) with ESMTP id 1225B60133; Mon, 15 Dec 2025 09:33:51 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B2690C4CEF5; Mon, 15 Dec 2025 09:33:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1765791230; bh=SeF9YpW8ZZv1PqRsseJuqiCynezLQg+Dpkn6Gx/DWrM=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=Xt1v9Zy6vJn3XucSIhPiWS5DgEBL8MeL8S3hjUOZ92Pz+AF2MsIKRPE4X+WE23PXB 8vZa/Foh1wS2BLniSCP/VRE6zIjzaao6VIZtWIaWvO8QpDz6XATn/HMt4pEPx7kJ6D CAr4/XhcmkEIMyuTaoSdxBgVfhKphIvDaO6xyHazeILXiuNsz2ZpcPkgDbmjI2sahs wtW/iYCyHIyVMkgcJBGgdA0Gx7tAHlClPmM5dyf0Vr0ohcy4zDqsu+6kuAH1rttPPM bJanP79mJIJ/YOa+hi6bvpvXE1/UuTjmxYUMGi6i+JICrwdMa/RVMXjoKFUYP3ukLo iW3VfwHc28bPw== 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.98.2) (envelope-from ) id 1vV4xg-0000000Ciix-00EC; Mon, 15 Dec 2025 09:33:48 +0000 Date: Mon, 15 Dec 2025 09:33:47 +0000 Message-ID: <86ms3knl6s.wl-maz@kernel.org> From: Marc Zyngier To: Yeoreum Yun Cc: catalin.marinas@arm.com, will@kernel.org, broonie@kernel.org, oliver.upton@linux.dev, miko.lenczewski@arm.com, kevin.brodsky@arm.com, ardb@kernel.org, suzuki.poulose@arm.com, lpieralisi@kernel.org, yangyicong@hisilicon.com, scott@os.amperecomputing.com, joey.gouly@arm.com, yuzenghui@huawei.com, pbonzini@redhat.com, shuah@kernel.org, mark.rutland@arm.com, arnd@arndb.de, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kvmarm@lists.linux.dev, kvm@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: Re: [PATCH v11 RESEND 9/9] arm64: armv8_deprecated: apply FEAT_LSUI for swpX emulation. In-Reply-To: <20251214112248.901769-10-yeoreum.yun@arm.com> References: <20251214112248.901769-1-yeoreum.yun@arm.com> <20251214112248.901769-10-yeoreum.yun@arm.com> 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: yeoreum.yun@arm.com, catalin.marinas@arm.com, will@kernel.org, broonie@kernel.org, oliver.upton@linux.dev, miko.lenczewski@arm.com, kevin.brodsky@arm.com, ardb@kernel.org, suzuki.poulose@arm.com, lpieralisi@kernel.org, yangyicong@hisilicon.com, scott@os.amperecomputing.com, joey.gouly@arm.com, yuzenghui@huawei.com, pbonzini@redhat.com, shuah@kernel.org, mark.rutland@arm.com, arnd@arndb.de, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kvmarm@lists.linux.dev, kvm@vger.kernel.org, linux-kselftest@vger.kernel.org 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 Sun, 14 Dec 2025 11:22:48 +0000, Yeoreum Yun wrote: > > Apply the FEAT_LSUI instruction to emulate the deprecated swpX > instruction, so that toggling of the PSTATE.PAN bit can be removed when > LSUI-related instructions are used. > > Signed-off-by: Yeoreum Yun It really begs the question: what are the odds of ever seeing a CPU that implements both LSUI and AArch32? This seems extremely unlikely to me. M. -- Without deviation from the norm, progress is not possible.