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 A6527C4345F for ; Tue, 23 Apr 2024 12:07:01 +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=KLYmTLokgewEaiCOVXzg6gdkAFHUtK91DhPBkcaLZMM=; b=g1DkDJECYA3UWG BqCNwmFb1JrLD060u2ISGbzXGMDHfluAYmZmJGBOldesjL+PbOboiahRW/8rPoaecMYSDluJ+95LV BShdPWX4BZ72NnPcg4lYbIhFTCbYKlMofnrXg99aIS377VSCDxh7swQoI4+8LPZ3LOROZ9on50lX4 IoqHBxjyjNJdkQ+HxwPjfKqq+fM+m21zlFlh0E5ZDp7EdirDv+ebb2hrLjfeQFSzg/f13O85/fqyu J7d5aI4qM37/aKn/EVqpFIvelByJC/+V5MAN61z9SQ0NKShzLBnqvxNebcFA1qH7mu95StCnIaubo E2A/BgjEMNzMRsQkSFjg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rzEv3-0000000HII5-3f00; Tue, 23 Apr 2024 12:06:41 +0000 Received: from sin.source.kernel.org ([145.40.73.55]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rzEv0-0000000HIFs-0VL7 for linux-arm-kernel@lists.infradead.org; Tue, 23 Apr 2024 12:06:40 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id 78380CE0B86; Tue, 23 Apr 2024 12:06:34 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 95C30C2BD11; Tue, 23 Apr 2024 12:06:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713873993; bh=kaaeIMDC16xnlq4RBOjLRjwTEjSG81FNqGzSjjjtqP0=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=Q+VFeDUBRnN+sbcaAOn+TrQY84c+T5zptmlnR7y0xRcVnwuRw1GPit3FpcjKU05N/ jsrzQzV4W8atMFIsabE2JmIqQdB1+DppybZpFuRsmommPAQ7IKV/FpC0SAkp1WnlUF SU06wNA6iMZM7s8uqaLKFffgAcrUcFa3LQOmspvscvk2i5nAWiCVLLIgjIveFzY0vx t/OV1qYD8LLVO239aSRhWER2LxZ8DU0JsVxwxscNEKkeD6HMGzniw5X1blw8lMQmdt ySlZOyNSCLvkmOXfxSz8KTt9GxpMwxq1YATxW5YcFvE0rXgOmVXr0KUs84vHoep8yW syx9Lrlapo28Q== Received: from [12.161.88.66] (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 1rzEut-007Agx-0U; Tue, 23 Apr 2024 13:06:31 +0100 Date: Tue, 23 Apr 2024 13:06:25 +0100 Message-ID: <87o7a0tha6.wl-maz@kernel.org> From: Marc Zyngier To: "Aiqun Yu (Maria)" Cc: Arnd Bergmann , , , James Morse , Suzuki K Poulose , Oliver Upton , Zenghui Yu , Mark Rutland , Joey Gouly , Will Deacon , Naresh Kamboju , Linaro Kernel Functional Testing Subject: Re: [PATCH] KVM: arm64: nv: Work around lack of pauth support in old toolchains In-Reply-To: <0b970cf5-a880-469c-93ab-9a268ee4ea2b@quicinc.com> References: <20240422224849.2238222-1-maz@kernel.org> <0b970cf5-a880-469c-93ab-9a268ee4ea2b@quicinc.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/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: 12.161.88.66 X-SA-Exim-Rcpt-To: quic_aiquny@quicinc.com, arnd@arndb.de, kvmarm@lists.linux.dev, linux-arm-kernel@lists.infradead.org, james.morse@arm.com, suzuki.poulose@arm.com, oliver.upton@linux.dev, yuzenghui@huawei.com, mark.rutland@arm.com, joey.gouly@arm.com, will@kernel.org, naresh.kamboju@linaro.org, lkft@linaro.org 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-20240423_050638_575435_277EC732 X-CRM114-Status: GOOD ( 21.69 ) 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 Tue, 23 Apr 2024 13:00:55 +0100, "Aiqun Yu (Maria)" wrote: > > > > On 4/23/2024 4:24 PM, Arnd Bergmann wrote: > > On Tue, Apr 23, 2024, at 00:48, Marc Zyngier wrote: > >> We still support GCC 8.x, and it appears that this toolchain > >> does not understand "pauth" as a valid architectural extension. > >> After all, it's only been 8 years since ARMv8.3 was released... > > > > Just to clarify: I'm fairly sure that all supported toolchains > > support ARMv8.3 and PACGA, the problem with ".arch_extension pauth\n" > > seems to be that it was retroactively made an optional > > feature for earlier architecture versions a few years after > > ARMv8.3, so most binutils versions we support understand > > pacga as an armv8.3 feature but reject the pauth name for the > > extension. > Kind of agree with Arnd here. > Shall the fix just remove the ".arch_extension pauth"? > > I've tried gcc 7 failed with the pauth name for the extension. > After I remove the ".arch_extension pauth" and use "pacga" instruction > directly pass the gcc 7 compilation. And breaks with LLVM: CC arch/arm64/kvm/pauth.o arch/arm64/kvm/pauth.c:40:9: error: instruction requires: pauth "pacga %0, %1, %2" : "=r" (pac) : "r" (ptr), "r" (mod)); ^ :2:1: note: instantiated into assembly here pacga x19, x1, x9 ^ 1 error generated. 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