Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp1293864lqj; Mon, 3 Jun 2024 17:23:33 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXMLhKSBirpR8ztro8d724TEbL8yJ/aOXT6MyZhwAwnpikGhfPX+lPZYCLeiazG75g1dADcGvwpCGlw1Sn0rQoRVt4o7PttWKdXuXM27A== X-Google-Smtp-Source: AGHT+IH0uzlZJaHrsNf6XZvKXKCPpID4Jh0GGI7ROdlcnAK2tsvWbuZU1rwjoHFKhLCJFVWzkBQD X-Received: by 2002:a05:6102:c13:b0:48b:f61b:75ac with SMTP id ada2fe7eead31-48bf61b83f1mr529977137.11.1717460613614; Mon, 03 Jun 2024 17:23:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717460613; cv=pass; d=google.com; s=arc-20160816; b=wJuIl7xWnTwPb4AhiiUjEB2KSkdZC+WHPDR/s71umK1noBrggb+Vt5K25y2oEiCqMz Ct9rbMKWdZ3xX7lkq7JqVUMULvzwMV+Buw0QvCLd6DrLtPa5NvudZXVNKmGv7yUPJ3EB aNEj7NWqEPA03vQTW0eagD1Mo2JoJFvDy4CklW9LMQjbuKoQ+7pebJg+Pvm4yxSCJ1wO Af3Ca4HAMvbfnTBU07Wz0gGcGrpN6DX9HuaEdkDf7oJ1nKOFXo0mgwoeIawaTxhrrpR0 uHocIee/tcK8YwnSqoFtWTiRNjtbDC+RJUTVLVfK69cGrNgUVJ44nlCQc1ccUjLOImBI BfCA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:from:subject:message-id:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :in-reply-to:date:dkim-signature; bh=HRuXM8qP8LdDvX6fn1r8scesSI9q9pU2JyFDr4cXXhA=; fh=SHs0WUftpe46t2sQXOGU3MC40HMWsyObPUedCGJ/h1E=; b=ffXIYN7aD+PlT7udzQ3JUIvUnfzBgHBxOFMsSBe2wbGe8OcidMF9F6AjBHIrvuw9N+ g54pwWq/voh8axKTT2oAdNTDsTSkgX2k7d3kOpzq80NsX5ExAaYLs+jbhwziuvDEh15b GM3DqPdavUX63uLX2cPLGNZZgXae7z/j7jEahh0GXiBAn8YkRrzM+tNXs9LZmXm115Bw v+N0ph/KIPFNZdR8TnRDBu1dcFurdYNXEzLml45GCsDw66TJ6N28xPyP2k86qDEe1vJk L5RsRi1XqfihlKV+JzcDIucON0A9pXvszHByw55Ri4gL+jitCDDc2QiPOajWGItlMyhT bldg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=c1m8ckvv; arc=pass (i=1 spf=pass spfdomain=flex--seanjc.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-199869-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-199869-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id af79cd13be357-794f32b6599si1061591985a.709.2024.06.03.17.23.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jun 2024 17:23:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-199869-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=@google.com header.s=20230601 header.b=c1m8ckvv; arc=pass (i=1 spf=pass spfdomain=flex--seanjc.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-199869-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-199869-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com 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 E80691C22FBC for ; Tue, 4 Jun 2024 00:23:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EBD5A6FD3; Tue, 4 Jun 2024 00:23:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="c1m8ckvv" Received: from mail-yb1-f202.google.com (mail-yb1-f202.google.com [209.85.219.202]) (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 A875D1FA5 for ; Tue, 4 Jun 2024 00:23:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.202 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717460590; cv=none; b=AT81JCxgPeXIz/tqzPpZFfvNbdtCdct7BHf0rwHYGEUYqvwjUMvHm+zrYMDEei/6aPrZhOAijChlc2viDKUJtAhnjt0x4Mi8wohLTG7tOF644y0WkIQFLElLIS98dygO06s6i96huaRgtVK+G7RbYbBoWK9kNaJT4p7jvFT8AV0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717460590; c=relaxed/simple; bh=ouvtVl7K0PAyNCf/CqS8kHiqugncCwG8s3P79l84eTI=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=PYSuFlcShJydTgXpDwo8K4p4mFqMIuCNhNjlZigardY0dOudge8rC4engaM9PI6BtAgnSR3kMir39wbJEuuj51W00JKs/xWmuFD/7mq+NjvpZZcVUK2ctlVET+bLjMbOSfmzL0p9fOk1z0zZIq9Yd8DaW5GExCanYDByTs1lolc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--seanjc.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=c1m8ckvv; arc=none smtp.client-ip=209.85.219.202 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--seanjc.bounces.google.com Received: by mail-yb1-f202.google.com with SMTP id 3f1490d57ef6-dfa4b878450so7327011276.3 for ; Mon, 03 Jun 2024 17:23:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1717460588; x=1718065388; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:from:subject:message-id:references :mime-version:in-reply-to:date:from:to:cc:subject:date:message-id :reply-to; bh=HRuXM8qP8LdDvX6fn1r8scesSI9q9pU2JyFDr4cXXhA=; b=c1m8ckvvboOwe3KrhHvNr9scMkhS5hbZHC4OO/9AxaPB6cCwQnHZkr1ZxTFGKbGpkm U21tzIPxW2xS0YzG453o80rah9rxwfBOjzEmsykJnWgK1SAIOVPBUwK0zkGXDxnLvj9Y AW52RCSShShES3RR2ozc8dVWoh4Rol47IrwsXyYIjm9WoimEaT/lmnet4RIuodPntggB plcafDYVXkQZKOa2/m+6wAbjOL8xRJ4yw2rmCGeDmLiOFT4aRZX2dRsU0hNekfENabM1 QUUPAvur26jvp92Z4K1CWzFxCO3JvEs1jfPGBZr3MkUhu/xkSfVGyyCe838x5bftgUlq UPfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717460588; x=1718065388; h=content-transfer-encoding:cc:to:from:subject:message-id:references :mime-version:in-reply-to:date:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=HRuXM8qP8LdDvX6fn1r8scesSI9q9pU2JyFDr4cXXhA=; b=oROqeeMLxipGlNwrbFcSz6z7N5TvAP5YE8arKpB8/zxIGYPUJvBOOSyZxxLgebp0Eb NQp2KeZ9rTLQOMBJ/vPtIcfl/JURhYhHF6mzraGqrbdMtz64HZrH/JJE7N1KNy2jBlIG UghkKN+C4wmzXZoYBl8l/x16pIrWZiObreJ4lY3lIrQjP0grA11q82ZAg8Y/00wdgMXv NrbOQfRQPsQXYC0PTwLm17zowyTGPbbeoxiKaIK0x6gwsGWaCK1Tbg338m7+xlpquwDt zWgm1bTwE4obzn0+c94dM71hkNE12x+d5fNiq5pXr2UgP5tlzQjNXaCNYIxouSR+g1QQ kQ3A== X-Forwarded-Encrypted: i=1; AJvYcCWIsw3PCt9fiae3MC5K+QXANTFQF2MzS791ZJh6FZDUR+ta+LhoMtwl1IL/dudZGrXtetVeotRiKD/jTyPIFku38P9S5VlFZPSwVCtS X-Gm-Message-State: AOJu0Yx7hFM+8MqBC/P4KdSBNky8PcBJ8vTv2CZ3qGHQahMuhSJ30gnO xNkc3XEGHdaoUwUmB0BeMleMMFY25MJk847IYwIhM/QvHz4IuUBxhlqiQLmablzHeYy7SmYqg+l e+A== X-Received: from zagreus.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5c37]) (user=seanjc job=sendgmr) by 2002:a05:6902:707:b0:dfa:ba40:6f43 with SMTP id 3f1490d57ef6-dfaba407295mr112473276.2.1717460587664; Mon, 03 Jun 2024 17:23:07 -0700 (PDT) Date: Mon, 3 Jun 2024 17:23:06 -0700 In-Reply-To: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20240529180510.2295118-3-jthoughton@google.com> Message-ID: Subject: Re: [PATCH v4 2/7] mm: multi-gen LRU: Have secondary MMUs participate in aging From: Sean Christopherson To: James Houghton Cc: Yu Zhao , Andrew Morton , Paolo Bonzini , Albert Ou , Ankit Agrawal , Anup Patel , Atish Patra , Axel Rasmussen , Bibo Mao , Catalin Marinas , David Matlack , David Rientjes , Huacai Chen , James Morse , Jonathan Corbet , Marc Zyngier , Michael Ellerman , Nicholas Piggin , Oliver Upton , Palmer Dabbelt , Paul Walmsley , Raghavendra Rao Ananta , Ryan Roberts , Shaoqin Huang , Shuah Khan , Suzuki K Poulose , Tianrui Zhao , Will Deacon , Zenghui Yu , kvm-riscv@lists.infradead.org, kvm@vger.kernel.org, kvmarm@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-mips@vger.kernel.org, linux-mm@kvack.org, linux-riscv@lists.infradead.org, linuxppc-dev@lists.ozlabs.org, loongarch@lists.linux.dev Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable On Mon, Jun 03, 2024, James Houghton wrote: > On Mon, Jun 3, 2024 at 4:03=E2=80=AFPM Sean Christopherson wrote: > > But before we do that, I think we need to perform due dilegence (or pro= vide data) > > showing that having KVM take mmu_lock for write in the "fast only" API = provides > > better total behavior. I.e. that the additional accuracy is indeed wor= th the cost. >=20 > That sounds good to me. I'll drop the Kconfig. I'm not really sure > what to do about the self-test, but that's not really all that > important. Enable it only on architectures+setups that are guaranteed to implement the fast-only API? E.g. on x86, it darn well better be active if the TDP MMU i= s enabled. If the test fails because that doesn't hold true, then we _want_ = the failure.