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=-4.0 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS autolearn=no 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 1EE07C47247 for ; Mon, 4 May 2020 11:13:11 +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 E8A1320735 for ; Mon, 4 May 2020 11:13:10 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="fLiju5HQ"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="JXtsNst8" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E8A1320735 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-Type: Content-Transfer-Encoding:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:Message-ID:References:In-Reply-To:Subject:To:From: Date:MIME-Version:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=hD+G7RPrY72PVvA4FDp0RsA0cEWoDQB9xk5NTox3RvU=; b=fLiju5HQRvQbdhwEoHtD5DPEb kwxhqJo7W/gbs6cuCSjIpLUjUqD/FXcMvKZ6cAwbzmsfEI2spMzrKZSqhwCUAmxNJLsY9FcmWx/hz ZBRtNnFzhUNOK8Nc4ioVjWwwZUtnEPSweZald1w4zhjPG0HSJDGNfvZQzg+o+8CgygELVBHZsk3Gy ZrrUnoX3euOfIhh0iFRcEOpqRXsDX1BdbHY3/q9BsmLtUrRzHLIx5nridJ6hyOaWXIwAmIFLdz0WT bY2QWrEa7OqqdkuIrFDqBK8TLMgC9LscwCT/1Xi8TYIOWF853QBAHWc5RpeKmvFIFvTpFbafzTFZp eD5brhZ7g==; 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 1jVZ23-0005LU-Oe; Mon, 04 May 2020 11:13:07 +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 1jVZ21-0005Kj-0p for linux-arm-kernel@lists.infradead.org; Mon, 04 May 2020 11:13:06 +0000 Received: from disco-boy.misterjones.org (disco-boy.misterjones.org [51.254.78.96]) (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 2FFD520735; Mon, 4 May 2020 11:13:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1588590784; bh=H+eWWBmOdHYwgV1hxjICbdT0SmXkwIQM1HukWJhJhaQ=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=JXtsNst8qPfUoymUcSb2aJ7efwwHHt5abGSADfoMFSa/wJxx67CvdNNH6JIDepCHa CaiOgLDqspw7FoH2xarryUYG7VPqYbqIDbqYqialpyT2j6SD953fy48gumgW7wXcBc TrlfVJ/TCUdLq5sWHLlsPnCy7IOxwRIbSGj7e06Y= Received: from disco-boy.misterjones.org ([51.254.78.96] helo=www.loen.fr) by disco-boy.misterjones.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jVZ1y-0091Ra-9G; Mon, 04 May 2020 12:13:02 +0100 MIME-Version: 1.0 Date: Mon, 04 May 2020 12:13:02 +0100 From: Marc Zyngier To: Will Deacon Subject: Re: [PATCH v3] arm64: Unify WORKAROUND_SPECULATIVE_AT_{NVHE,VHE} In-Reply-To: <20200504105539.GA4879@willie-the-truck> References: <20200504094858.108917-1-ascull@google.com> <20200504105539.GA4879@willie-the-truck> User-Agent: Roundcube Webmail/1.4.3 Message-ID: <7b3cc0b0a3fa6d08d8c8413e4498d485@kernel.org> X-Sender: maz@kernel.org X-SA-Exim-Connect-IP: 51.254.78.96 X-SA-Exim-Rcpt-To: will@kernel.org, ascull@google.com, kvmarm@lists.cs.columbia.edu, linux-arm-kernel@lists.infradead.org, james.morse@arm.com, suzuki.poulose@arm.com, steven.price@arm.com 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-20200504_041305_085575_89C3DFD4 X-CRM114-Status: GOOD ( 13.68 ) 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-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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. But otherwise, I'll take a stable branch. 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). Thanks, M. -- Jazz is not dead. It just smells funny... _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel