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=-3.8 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, 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 92F74C3A5A9 for ; Mon, 4 May 2020 11:13:09 +0000 (UTC) Received: from mm01.cs.columbia.edu (mm01.cs.columbia.edu [128.59.11.253]) by mail.kernel.org (Postfix) with ESMTP id 161A720735 for ; Mon, 4 May 2020 11:13:09 +0000 (UTC) Authentication-Results: mail.kernel.org; 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 161A720735 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kvmarm-bounces@lists.cs.columbia.edu Received: from localhost (localhost [127.0.0.1]) by mm01.cs.columbia.edu (Postfix) with ESMTP id AE6084B3A9; Mon, 4 May 2020 07:13:08 -0400 (EDT) X-Virus-Scanned: at lists.cs.columbia.edu Authentication-Results: mm01.cs.columbia.edu (amavisd-new); dkim=softfail (fail, message has been altered) header.i=@kernel.org Received: from mm01.cs.columbia.edu ([127.0.0.1]) by localhost (mm01.cs.columbia.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 335ePW8lUvOz; Mon, 4 May 2020 07:13:07 -0400 (EDT) Received: from mm01.cs.columbia.edu (localhost [127.0.0.1]) by mm01.cs.columbia.edu (Postfix) with ESMTP id 978CD4B399; Mon, 4 May 2020 07:13:07 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by mm01.cs.columbia.edu (Postfix) with ESMTP id 46A3C4B393 for ; Mon, 4 May 2020 07:13:06 -0400 (EDT) X-Virus-Scanned: at lists.cs.columbia.edu Received: from mm01.cs.columbia.edu ([127.0.0.1]) by localhost (mm01.cs.columbia.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id BSHoL51kyNbU for ; Mon, 4 May 2020 07:13:05 -0400 (EDT) Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by mm01.cs.columbia.edu (Postfix) with ESMTPS id 488F24B391 for ; Mon, 4 May 2020 07:13:05 -0400 (EDT) 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 Cc: Steven Price , kvmarm@lists.cs.columbia.edu, linux-arm-kernel@lists.infradead.org X-BeenThere: kvmarm@lists.cs.columbia.edu X-Mailman-Version: 2.1.14 Precedence: list List-Id: Where KVM/ARM decisions are made List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: kvmarm-bounces@lists.cs.columbia.edu Sender: kvmarm-bounces@lists.cs.columbia.edu 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... _______________________________________________ kvmarm mailing list kvmarm@lists.cs.columbia.edu https://lists.cs.columbia.edu/mailman/listinfo/kvmarm