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 EBF07C3A5A9 for ; Mon, 4 May 2020 11:26:33 +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 B8C2C20721 for ; Mon, 4 May 2020 11:26:33 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="DMAHhjWo"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="MPL/S/eG" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B8C2C20721 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=/OcJAAOAjv21+mtfu31UFKUkyc49jh92YmdbJB8NqvI=; b=DMAHhjWoxYIeME QqaydilUWh1Ku0OBPKpCI3GBGKVfebdPRILLXxZSKYXmVasTNqmE4B1KuyuqkABzQNQNAOZNTaGGA GvSPwALp2iNRjRBWPxt8nukjGmNcbEsRuvcAjeT1s2fnGCvCl92WZsnfRYd0Lcb6l6ieAcogFb3Cj jCo0ztqGUZFg1ycJJRqskpEtd5T3SSQ0TRCdelSkqpohPedRghmkiG+sUgsK8xhaRVhX7pRHHglC7 z/PrpQhWi6c2J3uw4/m7gfr5Lc5b3TIT7fzC0Yd9N1Sj4tovssXoPXeGzCIIDlgbGNfQwlnCot+ov u3+0ea95Ca7v/5U9WS+w==; 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 1jVZF3-0006yK-Ad; Mon, 04 May 2020 11:26:33 +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 1jVZF0-0006xt-6T for linux-arm-kernel@lists.infradead.org; Mon, 04 May 2020 11:26:31 +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 BE1F520721; Mon, 4 May 2020 11:26:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1588591589; bh=bbiZPVfmFqYVL/wAzhRV8cgjhVbnfg17BIGvQfSh0nQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=MPL/S/eG4Q240qsKgogVhDaxe7bXcVOEZZ1eoUWmwg4D456a5QdiHxHN5TC9E8y+V cuPbf4aTEWSbPf2KO2NuVDuTpf6r5S5ZfSsM861OKx4cmvTXcOpzh3O0lddznL2K+d ygmVZUTM2rNDkjG9hpzw/Bz32OsC3TGPngbCFxI0= Date: Mon, 4 May 2020 12:26:24 +0100 From: Will Deacon To: Marc Zyngier Subject: Re: [PATCH v3] arm64: Unify WORKAROUND_SPECULATIVE_AT_{NVHE,VHE} Message-ID: <20200504112624.GA1326@willie-the-truck> References: <20200504094858.108917-1-ascull@google.com> <20200504105539.GA4879@willie-the-truck> <7b3cc0b0a3fa6d08d8c8413e4498d485@kernel.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <7b3cc0b0a3fa6d08d8c8413e4498d485@kernel.org> 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_042630_260400_652F4733 X-CRM114-Status: GOOD ( 18.50 ) 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 , Steven Price , James Morse , Andrew Scull , 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 12:13:02PM +0100, Marc Zyngier wrote: > On 2020-05-04 11:55, Will Deacon wrote: > > 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? > > I'd rather we avoid the conflicts by not repainting all the capabilities > and just leave a capability unused until the next one fills in the slot. I think we'll run into conflicts whatever we do, so I'd say the patch is alright like it is. > But otherwise, I'll take a stable branch. Ok, let me cook that today. > Also the current state of the KVM/arm tree is a bit crap as none of the > fixes have made it into Linus' tree yet, and I don't have a good base > for the current queue (the welcome-home branch could create havoc). Seriously? I'll reply on your pull to see if I can help. Will _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel