From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qv1-f51.google.com (mail-qv1-f51.google.com [209.85.219.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3734A3ACA60 for ; Tue, 11 Aug 2026 15:29:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786462158; cv=none; b=H3EkmQ58nOz/wZMqWXPplQjxfJmEYgb4dDMk/PcqlmgHbEZknn9GR3U8jto2Uh9bet+MI5sqN/eIqhOerGcZhhGsRXESNrWxE/fyErcLbGrbbzC6MC0WpLcV7cM/aMULpbvBgUR0DHy314gm9xhffinb5umq1iFLH6RsirUeCtE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786462158; c=relaxed/simple; bh=UHHefDh2EvrnsEzLDkapnlP+pXYEV924LvKFh48lZrY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Du0EkPlJ0bkJbxhlHj08+p6/Z9CoWYQbsQSeEN2XFhtyqJjEl+rnhljdx7TKQXvrNrZrmaNuE+I8W+zGdTM5vBeukZ8evVPbEgN06Or+/RQB7WlH4QlDy+yTToTTVjO5BEYaT41/gskhN42V4kv60OUEfdqvC5G6owgQ9+tO6cc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ziepe.ca; spf=pass smtp.mailfrom=ziepe.ca; dkim=pass (2048-bit key) header.d=ziepe.ca header.i=@ziepe.ca header.b=K4yR/huY; arc=none smtp.client-ip=209.85.219.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ziepe.ca Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ziepe.ca Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ziepe.ca header.i=@ziepe.ca header.b="K4yR/huY" Received: by mail-qv1-f51.google.com with SMTP id 6a1803df08f44-9034b6b7674so6961626d6.0 for ; Tue, 11 Aug 2026 08:29:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; t=1786462156; x=1787066956; darn=vger.kernel.org; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to:content-type; bh=PH0RdPEa3oSLEapGNLL6x5bM2qkhDfi4j65pHbraVdA=; b=K4yR/huYx5piiUWPAxoQ71jBPkQM9HMLizBEWmmc/jF9TOGsJD7yazTY4saTVlvF+R KW3UTB3166z5Z8+Rjo3IpFyr7RgzFjdlUVl19ux6SR4zmgBb/utZ301U8F4NN6M/1vDe xIlXslUEcTunLLdIeTIBDZRk00dkyAPKn8soCgw2WG/ZpUgI4pCtFpvrJySXRUVQq69P nKqyF2Rr2wx/Yk2Nli8vFCVdEqlUyqYAYMmZeEaYngyZu+mEkC53RMx/ZTFOdU88h8MB OqFoJiovga7u7obX3U9vePGpsYOXdWq2DLDGEnWbYD8NM3ojQJdchKNR81aOgJr8JsOO ko/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1786462156; x=1787066956; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=PH0RdPEa3oSLEapGNLL6x5bM2qkhDfi4j65pHbraVdA=; b=YaDOpoEqv0/ieupJ7xwTss9dv9m5wK+oyK3J8dA3okkzKK/uodQMX7+SIWFU/JX1UY gG3c7wKnH2ZCZTsSD7Xi60DSpbBmBNQr7UpQJPgEHioJncJGSvEcIOlt120vP0WC+QxY d6u5qWsKhhDCTc2PTS9v55lRKtzM56RWdM+WCO3h5wFXOnfeUE6oM0jkAJwMAZgfLsv1 OFb5f9hPKcgmL0hBR2Wm8vVr2cg2WTCP+W7xoEt8t6vwka4xy4krfEoG3aMFEb3qCZwE pYF9GFpYz4ESipqfYmUXwodVYDidWzhzWrZHoQyi8HODo00wrZpXPWKr7VfzH3sF1jEv Nq4w== X-Forwarded-Encrypted: i=1; AHgh+RoS8jfWqutAyaQWMsuDGjTTKKcSgpX35JwPF+2dkbl9Z+pbfTHqcORUMHSvkh+khbMwidnbTzyH4WyrT3Q=@vger.kernel.org X-Gm-Message-State: AOJu0YxGYAWvgMl/y6gZ+hvmnDa7F7dSNs3EBWegFaygAtez4oQfY2Cc ujgCL2jLErdfGFbwMpHQBWB9A+lSHxo/2dJZzj0dfuCnEI/q6rQ4eiwzDjwteOd6zbQ= X-Gm-Gg: AR+sD10DAVQa0pZD4eSjjSYWSS62t6Ep3MEhsnaAxt10YTQuKXzYZEwk4NVEBfoEIP5 vy0/VFhJJ2xgLLNWeS3ucnH1dj77sA071kWqfvnxuc9bKP1DjHUFvdzTMhU/CccA8DITP4ujVcf 32fh8mnqtb7pbB2kcpE+kHrh01a3kc5R3eN+8PzF8cVvQaJ5phT/OxllmtJPLGmx86Uk6GF9q2z XgMrdfzfpmgDuWGkRMDBPZe6uTRmKPGxiYtTRiTdYOOosPZoRD1Qy+2L3v2jwO38IdoSQVTQpWz v0A7YaYy9iHNRQ3ijoVk9udMz5kz2cgglgfWnluqjHSO1erckTAUFC5bpPgUNpY0KPxgNbuBw6V RZ2oUmMH9NAPXJBVZP9aEy+u2PrV25U2Sbkkn6IdLxsGZjs5+E0TECV/lbDOyBKLCqf9+CYmWSX uyTE3t5YcySWSKdjFXSjxuW1yh4z+ZA9xO6Ov10A== X-Received: by 2002:ad4:5ca5:0:b0:90a:6016:deab with SMTP id 6a1803df08f44-90a6c0dc16fmr9015366d6.8.1786462155946; Tue, 11 Aug 2026 08:29:15 -0700 (PDT) Received: from ziepe.ca ([142.166.156.215]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-90a6c3c1d73sm1372206d6.34.2026.08.11.08.29.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Aug 2026 08:29:15 -0700 (PDT) Received: from jgg by wakko with local (Exim 4.97) (envelope-from ) id 1wtoPi-00000002X6a-0ioj; Tue, 11 Aug 2026 12:29:14 -0300 Date: Tue, 11 Aug 2026 12:29:14 -0300 From: Jason Gunthorpe To: David Woodhouse Cc: Andrew Morton , David Hildenbrand , Lorenzo Stoakes , "Liam R. Howlett" , Vlastimil Babka , Mike Rapoport , Suren Baghdasaryan , Michal Hocko , Sebastian Andrzej Siewior , Clark Williams , Steven Rostedt , Simona Vetter , =?utf-8?B?SsOpcsO0bWU=?= Glisse , Christian =?utf-8?B?S8O2bmln?= , "Paul E. McKenney" , Sean Christopherson , Paolo Bonzini , linux-mm@kvack.org, kvm@vger.kernel.org, linux-rt-devel@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH] mm/mmu_notifier: Remove non_block_start/end() from notifier invocation Message-ID: <20260811152914.GI544626@ziepe.ca> References: <20260811135537.GC544626@ziepe.ca> <1d669aca4ffee797b9c29215382444a5b23624b3.camel@infradead.org> <20260811142730.GG544626@ziepe.ca> 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=us-ascii Content-Disposition: inline In-Reply-To: On Tue, Aug 11, 2026 at 03:33:18PM +0100, David Woodhouse wrote: > > At the cost of completely destroying the mm shootdown performance with > > 1s RCU grace period waits every mm operation. No thanks. > > I feel like we're not talking about the same things here. > > The KVM patch which this enables does *not* behave as you have > described. Have you looked at it? It does, it calls synchronize_rcu() from kvm_mmu_notifier_invalidate_range_start() - don't do that... > Nobody's suggesting that we force any *other* MMU notifiers to do > anything that they don't do today. Sure, but nobody should implement their own notifiers with such a heavy locking primitive. Jason