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 X-Spam-Level: X-Spam-Status: No, score=-5.5 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A7A30C3A5A9 for ; Mon, 4 May 2020 10:56:17 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 759BC206A5 for ; Mon, 4 May 2020 10:56:17 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="kIrV0rCu"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="d5ARQv/l" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 759BC206A5 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject: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=+OJW3HQnTqzAaWsldqtAB+uspymWqU9bz58jUXOTH10=; b=kIrV0rCuwLnzkF RQjcPAEosZhi38TwO+ILzjcPvHrt93V7XR79kjMutgmMBGGUeB31vg0T8etYhDKOf6VrcAQRv52LZ PG/tVC4rRwfahB/OZ7dnL6NdXSMVgEpnKJCYG66seCG/HAO1bqUOFyEQsQfM6See6nVADHgSnwpyf 1GczXtkrxLB+piy0DgX+JTGGrxwkZbTZqvRKgJqgfzniUDHURszJuUEszj2bH2QX70BArk4JEllpn Lp6bVSpwM7gso+HBN+VK43boIEMDu44DNTIAMyQ5WGY4N8Y3yrPiLX2dtEclVVHRzjvhfrvcEoERM 4vZlDkpQ2TA+HQsNYMww==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jVYlk-0000Yw-48; Mon, 04 May 2020 10:56:16 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jVYlP-000097-3O for linux-arm-kernel@lists.infradead.org; Mon, 04 May 2020 10:55:56 +0000 Received: from willie-the-truck (236.31.169.217.in-addr.arpa [217.169.31.236]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 3ED82206A5; Mon, 4 May 2020 10:55:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1588589753; bh=yimknkycNhWKt9Dg66qxN0A5QA1czHX/skfD4nGVYdA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=d5ARQv/l7m/8JjOJrMvKHd+HbrsIPm1PW9uqlGLcf+qdxGSrka6vO82Sdqk2iiTc7 zK1vovQgtpE/1y5rWL8vVqn4+mZEU67cwcMCdfGb1yhtWicPOAp2bT6qXRqBYEZT37 sWGvKBIRlFj0ENPMvRYnGudRXI+SbU/ujaxwkTNA= Date: Mon, 4 May 2020 11:55:49 +0100 From: Will Deacon To: Andrew Scull Subject: Re: [PATCH v3] arm64: Unify WORKAROUND_SPECULATIVE_AT_{NVHE,VHE} Message-ID: <20200504105539.GA4879@willie-the-truck> References: <20200504094858.108917-1-ascull@google.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20200504094858.108917-1-ascull@google.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200504_035555_175858_D909F310 X-CRM114-Status: GOOD ( 11.98 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Suzuki K Poulose , Marc Zyngier , Steven Price , James Morse , kvmarm@lists.cs.columbia.edu, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Mon, May 04, 2020 at 10:48:58AM +0100, Andrew Scull wrote: > Errata 1165522, 1319367 and 1530923 each allow TLB entries to be > allocated as a result of a speculative AT instruction. In order to > avoid mandating VHE on certain affected CPUs, apply the workaround to > both the nVHE and the VHE case for all affected CPUs. > > Signed-off-by: Andrew Scull > CC: Marc Zyngier > CC: James Morse > CC: Suzuki K Poulose > CC: Will Deacon > CC: Steven Price > --- > From v2 <20200422161346.67325-1-ascull@google.com>: > - const_cap -> final_cap merge correction > - based on 5.7 rc4 > --- > arch/arm64/Kconfig | 39 ++++++++++++++----------------- > arch/arm64/include/asm/cpucaps.h | 15 ++++++------ > arch/arm64/include/asm/kvm_host.h | 4 ---- > arch/arm64/include/asm/kvm_hyp.h | 2 +- > arch/arm64/kernel/cpu_errata.c | 25 +++++++++----------- > arch/arm64/kvm/hyp/switch.c | 6 ++--- > arch/arm64/kvm/hyp/sysreg-sr.c | 6 +++-- > arch/arm64/kvm/hyp/tlb.c | 11 +++++---- > 8 files changed, 50 insertions(+), 58 deletions(-) Acked-by: Will Deacon We'll probably run into some trivial conflicts with the arm64 tree, but I'm happy to put this on a branch if it helps. Marc? Will _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel