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=-2.5 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_2 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 35ED1C2D0E5 for ; Sat, 28 Mar 2020 11:24:05 +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 F370D206E6 for ; Sat, 28 Mar 2020 11:24:04 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="UtY6pALF"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="OIs2wvm7" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org F370D206E6 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:MIME-Version:References:In-Reply-To: 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=gW2kyNaiuG2MCczQIa9su4FbcA33UsXyL6MVzL+2Sqg=; b=UtY6pALF0y87Nd 2MISKItt3nv3Bn9GuNnVVt/O9XQQF84BiN+whlRWK2oPuh6uvk7MjXTr2GarzVH+cfkNLgywav7mv 1v4GsZTS+DgP7TTrGFel0XOU3/R91wFsIXjHkHMkEXDCVnB0LUvH1hGnUSZwT+MbJA2CZaRcaUtYt EzHKRMQZriOZ3o4JPPPpsZZE/sU7VOvTyZMBmMX5GL8mbK7QPUuK8D485hfzTJBdlwD1h6ogO+9kZ 1ZCa9Fv3OPITMW8HuvMoNj730K9ThT0LPnWAuFXq3KyEauU9unwjSYe1gITDkFZP4E+0gujzlxxE4 uWbk1PoXBkGIqrlMqYPg==; 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 1jI9ZM-0004rs-0X; Sat, 28 Mar 2020 11:24:04 +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 1jI9ZI-0004rW-Rz for linux-arm-kernel@lists.infradead.org; Sat, 28 Mar 2020 11:24:02 +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 65F30206E6; Sat, 28 Mar 2020 11:23:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1585394637; bh=OPdTpCBji5gpmZux7SMOKK6UF14o+bG6hhufft+DOnA=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=OIs2wvm7CpDgWIeS78sUQUHjpKH7KyEIjTnG2RhMbv+jFVCKCAM3OIOLhGz06OErD PekeG6Vth9KOVA8E2tPajhv2Qdpu2dL84DL0Og+8aOds9kYDE/R7wrssUZDhdkrzcT IGUNhYYJJKhWgUSadlukSphGohjuuv9lTk7Mt8wQ= Received: from 78.163-31-62.static.virginmediabusiness.co.uk ([62.31.163.78] helo=why) by disco-boy.misterjones.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jI9ZD-00GQel-Ht; Sat, 28 Mar 2020 11:23:55 +0000 Date: Sat, 28 Mar 2020 11:23:51 +0000 From: Marc Zyngier To: Will Deacon Subject: Re: [RFC PATCH] arm64: unify WORKAROUND_SPECULATIVE_AT_{NVHE,VHE} Message-ID: <20200328112351.53f800ed@why> In-Reply-To: <20200327180913.GA10454@willie-the-truck> References: <20200327143941.195626-1-ascull@google.com> <1705907b-234c-6f56-1360-f598c8047d1d@arm.com> <20200327174838.GD178422@google.com> <20200327180913.GA10454@willie-the-truck> Organization: Approximate X-Mailer: Claws Mail 3.17.5 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 X-SA-Exim-Connect-IP: 62.31.163.78 X-SA-Exim-Rcpt-To: will@kernel.org, ascull@google.com, steven.price@arm.com, linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, qperret@google.com, dbrazdil@google.com, qwandor@google.com, tabba@google.com, wedsonaf@google.com, kernel-team@android.com, James.Morse@arm.com, Suzuki.Poulose@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-20200328_042400_928170_0E48B998 X-CRM114-Status: GOOD ( 16.36 ) 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: qwandor@google.com, qperret@google.com, Suzuki Poulose , tabba@google.com, Steven Price , wedsonaf@google.com, Andrew Scull , James Morse , dbrazdil@google.com, kernel-team@android.com, 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 Fri, 27 Mar 2020 18:09:14 +0000 Will Deacon wrote: > On Fri, Mar 27, 2020 at 05:52:59PM +0000, Marc Zyngier wrote: > > On 2020-03-27 17:48, Andrew Scull wrote: > > > Thanks, Steven. Could we look into the EPD* caching microarch details > > > Marc was referring to for these A55 and A76 cores? > > > > Only the folks that have access to the RTL can tell you, unfortunately. > > > > Thankfully, there is a bunch of people on Cc that should be able to ping > > the relevant teams and report back... > > Yup, otherwise I guess we can throw in the TLB invalidation after setting > the EPDx bits until we have clarity from Arm. We wouldn't need to broadcast > it, so it might not be too bad on performance. If it is, I suppose we could > switch to a reserved VMID? I'd like to avoid the reserved VMID if at all possible -- we already have one for the host on nVHE, and I bet your patches are going to create some interesting havoc^Wchanges in that area, as the host is now a guest from the mm perspective. It isn't clear either whether a reserved VMID really solves the problem either, as you could still end-up with speculative PTWs. Can it be harmful to create conflicting TLB entries if you never hit them? But if we bring in TLB invalidation, I wonder whether the problem can be mitigated solely with just that on the affected CPUs, and what the impact would be. /me eyes the D05 running its 32 guests... 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