From patchwork Mon Jun 13 12:53:10 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bertrand Marquis X-Patchwork-Id: 12879495 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 lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (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 1EFBFCCA47C for ; Mon, 13 Jun 2022 12:53:42 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.348243.574529 (Exim 4.92) (envelope-from ) id 1o0jZO-0001Js-UV; Mon, 13 Jun 2022 12:53:26 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 348243.574529; Mon, 13 Jun 2022 12:53:26 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1o0jZO-0001Jl-PR; Mon, 13 Jun 2022 12:53:26 +0000 Received: by outflank-mailman (input) for mailman id 348243; Mon, 13 Jun 2022 12:53:25 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1o0jZN-0001I4-6p for xen-devel@lists.xenproject.org; Mon, 13 Jun 2022 12:53:25 +0000 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by se1-gles-sth1.inumbo.com (Halon) with ESMTP id cece51e8-eb17-11ec-bd2c-47488cf2e6aa; Mon, 13 Jun 2022 14:53:23 +0200 (CEST) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id C2DDBD6E; Mon, 13 Jun 2022 05:53:22 -0700 (PDT) Received: from e109506.cambridge.arm.com (e109506.cambridge.arm.com [10.1.199.62]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 046DE3F792; Mon, 13 Jun 2022 05:53:21 -0700 (PDT) X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: cece51e8-eb17-11ec-bd2c-47488cf2e6aa From: Bertrand Marquis To: xen-devel@lists.xenproject.org Cc: Stefano Stabellini , Julien Grall , Volodymyr Babchuk Subject: [PATCH v3 0/4] Spectre BHB follow up Date: Mon, 13 Jun 2022 13:53:10 +0100 Message-Id: X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Following up the handling of Spectre BHB on Arm (XSA-398), this serie contain several changes which were not needed in the XSA patches but should be done in Xen: - Sync sysregs and cpuinfo with latest version of Linux (5.18-rc3) - Add new fields inside cpufeature - Add sb instruction support. Some newer generations of CPU (Neoverse-N2) do support the instruction so add support for it in Xen. - Create hidden Kconfig entries for CONFIG_ values actually used in arm64 cpufeature. Changes in v3: - add R-b and A-b on patches - fixes in sb support patch Changes in v2: - remove patch which was merged (workaround 1 when workaround 3 is done) - split sync with linux and update of cpufeatures - add patch to define kconfig entries used by arm64 cpufeature Bertrand Marquis (4): xen/arm: Sync sysregs and cpuinfo with Linux 5.18-rc3 xen/arm: Add sb instruction support arm: add ISAR2, MMFR0 and MMFR1 fields in cpufeature arm: Define kconfig symbols used by arm64 cpufeatures xen/arch/arm/Kconfig | 28 +++++++++ xen/arch/arm/arm64/cpufeature.c | 18 +++++- xen/arch/arm/cpufeature.c | 28 +++++++++ xen/arch/arm/include/asm/arm64/sysregs.h | 76 ++++++++++++++++++++---- xen/arch/arm/include/asm/cpufeature.h | 34 +++++++++-- xen/arch/arm/include/asm/macros.h | 19 +++++- xen/arch/arm/setup.c | 3 + xen/arch/arm/smpboot.c | 1 + 8 files changed, 186 insertions(+), 21 deletions(-)