Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp1888914lqz; Tue, 2 Apr 2024 00:00:56 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXRAK8sRuyNlfbQpPBW0WBMX3fzzF8TgUsE0pa0hVVUtUTy0cMPjnbkm0Ma3Y0DFqLIdpBY+fHi/UVADXQnamLdnQ0M4T/vE9oQjJFY/A== X-Google-Smtp-Source: AGHT+IHGFLHakO7jyZ91+ISWikt4OGlIu6cvhc5CUS/209hsyNindjUGjJvjZaB0r5ttkx2bCZq0 X-Received: by 2002:ad4:42ce:0:b0:699:187a:2a63 with SMTP id f14-20020ad442ce000000b00699187a2a63mr966682qvr.6.1712041256319; Tue, 02 Apr 2024 00:00:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712041256; cv=pass; d=google.com; s=arc-20160816; b=bPNpeN2B3WXfGcLOh6/C74h+PFchsjaAZC2Qz9hasnzHq8s0uKDiB+Wl1Tkh8mO4qG K5Ufx077eYm99OIX+PCoqn9jos1kNxSIcCjLZZZkRuoJfbWiHcyVzeAC5AnJxsQUOETj 1f1SUGOHuj4jnMT3V2/aN3s4MlykuKvGwiIOS9xTedIZGcUpfjOX/vIZea3KK4NWlKoJ 9lLop8Tk1xAetub3i4ikaxGi4DI8gR2eZOOB9A0FJdIWCJYzsmuVirnYPOimi78VsHhX OCTOGBG/eAkHErNDzZZgMiYB878d+uOsneO1AATSVeuzmvK6kdCDVRtAIQBiiVNEcpek WQJA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:dkim-signature:date; bh=jhuzyWXDmRkSGaUwWTpdDkWh7n7iwav7be8n1ReoOqg=; fh=QQbv0UO4fUmU4/aMIIABqsO7fPMkRKswL2d5Xqwul6Y=; b=qOFHHmK6dG/Y7sVyHM1J/46+0jkoaOTcGW81ei3bKQUBbPRQjLbyJTRGKvkGWtLKU1 l4yhwN3T9dXOfO7uRtAj+bURBD+NDRcH3G4p8LuAO9nbJYMbE95yIQKTBsnmwGjqiny9 4UEQ30RPgS9l65WNMa0f4UMISVEMszBO0UkyDU9FcomL/MQDG8rxKVHCB+B+9YQcNMxo u0BY+2HyXyE6I5fOqgNkVMUQzM+lWOY1ql9bDT4sovf+g9fMaRYaDcj5HBEn6sL6AVBz Ft0SAmZDLnkiYCcT9QcZaTTgvmjGM0jXtCyQZE9ml17xCqov2jpA9LuPrghUHYpv7l0H 8dhQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=KgJN+PKw; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-127467-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-127467-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id n14-20020ad444ae000000b00698ed692a0esi9611381qvt.394.2024.04.02.00.00.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 00:00:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-127467-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=KgJN+PKw; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-127467-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-127467-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 291191C221CC for ; Tue, 2 Apr 2024 07:00:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9EE0B3A8C0; Tue, 2 Apr 2024 07:00:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="KgJN+PKw" Received: from out-189.mta0.migadu.com (out-189.mta0.migadu.com [91.218.175.189]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0DB8332C85 for ; Tue, 2 Apr 2024 07:00:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.189 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712041236; cv=none; b=PQwq4zXhv/F4IEeQL59A5SJDdBucEFOJFLO14vM6SrOnX2/K3TjzAHaHq8hKtQm4PPVlFi2enDMTEBr0HgPqViyR7j0MovkkDivNYilNW/8MCGkEDf2T430O9ZRGgBEmYbng27JNyuUg+NG+dLhQHt9wPJIb7k+8EwEoff5QTHo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712041236; c=relaxed/simple; bh=DWwpz4wCjpd3OHwoJNho95qF247VTvrYLLaNHUDRIQs=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=IgMPrhEkk7d8U//zGniJQw5g1DP2406iYI5BIAek4UaBOq4klxAA5n1V1slFSh39qw1qAh+V1c4BHkueH6X+LXwtwdZ6Rr7Dr+2Uf0UMmCH8T/ZaE38ZdbjvD1JEgYPBz14hZvQW+vnl7Rc9ICwmkWp3OszZW5OsBwtEdt9L0GY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=KgJN+PKw; arc=none smtp.client-ip=91.218.175.189 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Date: Tue, 2 Apr 2024 00:00:12 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1712041232; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=jhuzyWXDmRkSGaUwWTpdDkWh7n7iwav7be8n1ReoOqg=; b=KgJN+PKwUf4lvMCNNgRHnuy8Gq613K2HNrcIC+CQUk8Sf/7s4Hx+E56N6lZRoCSA0Dlm9q gxlbMuDbSrzUHZgC90oQuyB0Kd8gPYgsVUsYB6BOdjK0DzwQ2E0WmDAtMn29DrZYMJC+lr +c9QBLLVlmBOcBZkzESUyH9WEo8wfW4= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Oliver Upton To: Yu Zhao Cc: James Houghton , Andrew Morton , Paolo Bonzini , David Matlack , Marc Zyngier , Sean Christopherson , Jonathan Corbet , James Morse , Suzuki K Poulose , Zenghui Yu , Catalin Marinas , Will Deacon , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "H. Peter Anvin" , Steven Rostedt , Masami Hiramatsu , Mathieu Desnoyers , Shaoqin Huang , Gavin Shan , Ricardo Koller , Raghavendra Rao Ananta , Ryan Roberts , David Rientjes , Axel Rasmussen , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, kvm@vger.kernel.org, linux-mm@kvack.org, linux-trace-kernel@vger.kernel.org Subject: Re: [PATCH v3 6/7] KVM: arm64: Participate in bitmap-based PTE aging Message-ID: References: <20240401232946.1837665-1-jthoughton@google.com> <20240401232946.1837665-7-jthoughton@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Migadu-Flow: FLOW_OUT On Tue, Apr 02, 2024 at 12:06:56AM -0400, Yu Zhao wrote: > On Mon, Apr 1, 2024 at 7:30 PM James Houghton wrote: > > Suggested-by: Yu Zhao > > Thanks but I did not suggest this. Entirely up to you, but I would still want to credit everyone who contributed to a feature even if the underlying implementation has changed since the original attempt. > What I have in v2 is RCU based. I hope Oliver or someone else can help > make that work. Why? If there's data to show that RCU has a material benefit over taking the MMU lock for read then I'm all for it. Otherwise, the work required to support page-table walkers entirely outside of the MMU lock isn't justified. In addition to ensuring that page table teardown is always RCU-safe, we'd need to make sure all of the walkers that take the write lock are prepared to handle races. > Otherwise we can just drop this for now and revisit > later. I really wouldn't get hung up on the locking as the make-or-break for whether arm64 supports this MMU notifier. -- Thanks, Oliver