Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2222124rwd; Fri, 9 Jun 2023 08:14:10 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4xOnOU/Y9jDgKVjEkdmchBolVhl4V05RH7A6gJSe/73quppaHQuJulEtRdTRUaN2DX1PDL X-Received: by 2002:a05:6a21:328d:b0:10b:2214:7ab0 with SMTP id yt13-20020a056a21328d00b0010b22147ab0mr1489754pzb.21.1686323650633; Fri, 09 Jun 2023 08:14:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686323650; cv=none; d=google.com; s=arc-20160816; b=bSKFlhgFlhjST5y9I7bzubkCIMw+Rqax4HVo0IgPeLIFl1h5C2hblWk1pXK2jH7byA 8mKPqRKp31tvnoYh9DLSqCNvvYe7x28lInXd6o9yICLFLmq49ZTU7k0YpYD0kVq32015 RJw2Pz9DFg9Yr72vf5U8ODZfGkpR+9/qhqs/C0J8K2XzxcuoCzAXXU/W5cwxk6OJdzrH H79r8eBk9KTFdmbD9plhP9jA+sh1E/JmDbKtA0zhXVnTCDM16FxCC9pL/eSuXJu8n5ft bJeAIgFFZYuvBNOkS+m8APMqFy2HNB6QTitoQXFKPeDOuLzGC+NqIz8bMVDCJlhu0uUU cqHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:dkim-signature:date; bh=tjX8DzT+VkdDDHfdUii6WZAg+8YtJ/Le8qPqCL2aFIg=; b=IcRP7dtQgTsUSBhtvXwSGST36QQetyuCsdqXQK94sBjDshn8LWOp0mTlZeFpZ6jydu 31vvuG4+zRr26CNUf1L+VBolgAP5dRP6stheaLHH18HfgpM+hlHDEmY8jz8q2ElpMBxS MoGMvUI4K8uabMfj42NHgPrzQX4ujgslKbXTdun6I2O2bgzBhb7LacMC6axj25gt3OWH 39RlvTsj2zzjXiyMvhxaA0ixkOAifTZaQD31lJCVwjwsomhWo9Wwc/gI1jZLQmF63SZ3 lDIGoy27ppddlYIfIy0llvOsuJSfhiI9FekhZy+D9BjvzLhdjy1Pqd8k5YSKK+QGuq+v 2cAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=W1j3Mzaf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 83-20020a630256000000b00542abcf2ce4si2807157pgc.623.2023.06.09.08.13.57; Fri, 09 Jun 2023 08:14:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=W1j3Mzaf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241281AbjFIPAT (ORCPT + 99 others); Fri, 9 Jun 2023 11:00:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42202 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241594AbjFIO75 (ORCPT ); Fri, 9 Jun 2023 10:59:57 -0400 Received: from out-8.mta1.migadu.com (out-8.mta1.migadu.com [95.215.58.8]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 31009269A for ; Fri, 9 Jun 2023 07:59:56 -0700 (PDT) Date: Fri, 9 Jun 2023 14:59:50 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1686322794; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=tjX8DzT+VkdDDHfdUii6WZAg+8YtJ/Le8qPqCL2aFIg=; b=W1j3MzafFpna6foeRceMZoNVh+mGTUjdhwuAw8nMLJT3L1F1f2IJN6Mf9KJOvSOuRuiO6Q 1jLF5iAJd183k0VguYGNXFIS9TJy6XND+BMHrqBRkf04HI+VKUCz6lKW9nd+kjPKJMf2f1 PgNbT9fvR4pH0UChxo/8rFuqqN6KiH4= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Oliver Upton To: Will Deacon Cc: Marc Zyngier , Colton Lewis , kvm@vger.kernel.org, Catalin Marinas , James Morse , Suzuki K Poulose , Zenghui Yu , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kvmarm@lists.linux.dev Subject: Re: [PATCH 3/3] KVM: arm64: Skip break phase when we have FEAT_BBM level 2 Message-ID: References: <20230602170147.1541355-1-coltonlewis@google.com> <20230602170147.1541355-4-coltonlewis@google.com> <87sfb7octw.wl-maz@kernel.org> <20230608172112.GA1606@willie-the-truck> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230608172112.GA1606@willie-the-truck> X-Migadu-Flow: FLOW_OUT X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hey Will, On Thu, Jun 08, 2023 at 06:21:13PM +0100, Will Deacon wrote: > > IIRC, Colton was testing largely with permission relaxation, and had > > forward progress issues b.c. the stale TLB entry was never invalidated > > in response to a permission fault. > > Would the series at: > > https://lore.kernel.org/r/5d8e1f752051173d2d1b5c3e14b54eb3506ed3ef.1684892404.git-series.apopple@nvidia.com > > help with that? Heh, that's a rather interesting patch :) I don't think it is directly related to the problem Colton encounters, though the symptoms are similar. This crops up when KVM uses a stricter permission set than the primary MMU, like lazy X for deferred I$ maintenance and write-protection for dirty logging. KVM policy led to the stale TLB entry, so KVM is the one that needs to initiate the invalidation. -- Thanks, Oliver