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 C26D2C433F5 for ; Fri, 4 Feb 2022 18:44: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: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=r6LpOxwmmFyAGvWmZpUVbPFhhJjbind2b4waF9mB48U=; b=lNoUki1+a6s2qS temP3oyveKJqwpEpJPNkflqjKuEzuBjqz0reGoqDpx0pWuVwUgYP6CvUveQ5Oks69rZEPO45D/e+f sbYEt0DYGJjkBPm8PKawRdR9HAzbveVUG8oL9T9zLKSnv2z0Klb2w/U4F4J4VoYBIOLZYyykVc1az v8rfVn1XcMClflpYRF/vBNT3iuJwd8/XKfVoMZC311wlW5eTf9iS2AlSsp7ZYILRhkxNHl5ZW9cWB B0QuJT6aZBuHmko6tu7o4cZ838vk5Y6AQ42bhtxm/hUqhkKRvuRsO2GW4LmdvuuLxDV4dhGvGKG4C ExgCThj5QtGMj4PGTRyA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nG3Xu-005CA9-Ch; Fri, 04 Feb 2022 18:42:58 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nG3Xq-005C9o-G5 for linux-arm-kernel@lists.infradead.org; Fri, 04 Feb 2022 18:42:55 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id BA09D61B9A; Fri, 4 Feb 2022 18:42:53 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0FA3CC004E1; Fri, 4 Feb 2022 18:42:51 +0000 (UTC) Date: Fri, 4 Feb 2022 18:42:48 +0000 From: Catalin Marinas To: Vladimir Murzin Cc: linux-arm-kernel@lists.infradead.org, maz@kernel.org, mark.rutland@arm.com, will@kernel.org Subject: Re: [PATCH v2 4/4] arm64: Add support of PAuth QARMA3 architected algorithm Message-ID: References: <20220131170654.62381-1-vladimir.murzin@arm.com> <20220131170654.62381-5-vladimir.murzin@arm.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20220131170654.62381-5-vladimir.murzin@arm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220204_104254_593304_3781CED7 X-CRM114-Status: GOOD ( 15.31 ) 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 Mon, Jan 31, 2022 at 05:06:54PM +0000, Vladimir Murzin wrote: > QARMA3 is relaxed version of the QARMA5 algorithm which expected to > reduce the latency of calculation while still delivering a suitable > level of security. > > Support for QARMA3 can be discovered via ID_AA64ISAR2_EL1 > > APA3, bits [15:12] Indicates whether the QARMA3 algorithm is > implemented in the PE for address > authentication in AArch64 state. > > GPA3, bits [11:8] Indicates whether the QARMA3 algorithm is > implemented in the PE for generic code > authentication in AArch64 state. > > Signed-off-by: Vladimir Murzin > --- > arch/arm64/include/asm/asm_pointer_auth.h | 3 ++ > arch/arm64/include/asm/cpufeature.h | 1 + > arch/arm64/include/asm/kvm_hyp.h | 1 + > arch/arm64/include/asm/sysreg.h | 12 +++++++ > arch/arm64/kernel/cpufeature.c | 45 +++++++++++++++++++++++--- > arch/arm64/kernel/idreg-override.c | 16 +++++++-- > arch/arm64/kvm/arm.c | 1 + > arch/arm64/kvm/hyp/include/nvhe/fixed_config.h | 5 +++ > arch/arm64/kvm/hyp/nvhe/sys_regs.c | 14 ++++++++ > arch/arm64/kvm/sys_regs.c | 5 +++ > arch/arm64/tools/cpucaps | 2 ++ > 11 files changed, 99 insertions(+), 6 deletions(-) For the non-KVM bits: Reviewed-by: Catalin Marinas _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel