Message ID | 20240926013506.860253-15-jthoughton@google.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id E7268CCF9EB for <linux-mm@archiver.kernel.org>; Thu, 26 Sep 2024 01:36:04 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 79FC56B00C7; Wed, 25 Sep 2024 21:35:35 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 74CBE6B00C8; Wed, 25 Sep 2024 21:35:35 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 5C3E06B00C9; Wed, 25 Sep 2024 21:35:35 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 376FE6B00C7 for <linux-mm@kvack.org>; Wed, 25 Sep 2024 21:35:35 -0400 (EDT) Received: from smtpin11.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id E77041A10DD for <linux-mm@kvack.org>; Thu, 26 Sep 2024 01:35:34 +0000 (UTC) X-FDA: 82605172188.11.0D371AF Received: from mail-yb1-f201.google.com (mail-yb1-f201.google.com [209.85.219.201]) by imf13.hostedemail.com (Postfix) with ESMTP id 2D05C20003 for <linux-mm@kvack.org>; Thu, 26 Sep 2024 01:35:33 +0000 (UTC) Authentication-Results: imf13.hostedemail.com; dkim=pass header.d=google.com header.s=20230601 header.b=ldUT63r+; spf=pass (imf13.hostedemail.com: domain of 3ZLr0ZgoKCOkUeSZfRSeZYRZZRWP.NZXWTYfi-XXVgLNV.ZcR@flex--jthoughton.bounces.google.com designates 209.85.219.201 as permitted sender) smtp.mailfrom=3ZLr0ZgoKCOkUeSZfRSeZYRZZRWP.NZXWTYfi-XXVgLNV.ZcR@flex--jthoughton.bounces.google.com; dmarc=pass (policy=reject) header.from=google.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1727314373; h=from:from:sender: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: in-reply-to:in-reply-to:references:references:dkim-signature; bh=W5MO1wGLHyIriiPw0D1mbZgOsdCV5vF/ShV42LiObvw=; b=YSZpEWYd5HGcdZwerIUCa0/+VfWu2Ski1z55ppDP25g44kIQGY9GMC502Nh7B9qmqdi6Np drREPbWCfl9F5NTqVh0Cht7wsnb3egwDinfEuFAfqhb/BYnkFNCzS+coBn5awdP/jln7Fb mc4a/Weq1KEy9NJKtt140pjUzu63zUY= ARC-Authentication-Results: i=1; imf13.hostedemail.com; dkim=pass header.d=google.com header.s=20230601 header.b=ldUT63r+; spf=pass (imf13.hostedemail.com: domain of 3ZLr0ZgoKCOkUeSZfRSeZYRZZRWP.NZXWTYfi-XXVgLNV.ZcR@flex--jthoughton.bounces.google.com designates 209.85.219.201 as permitted sender) smtp.mailfrom=3ZLr0ZgoKCOkUeSZfRSeZYRZZRWP.NZXWTYfi-XXVgLNV.ZcR@flex--jthoughton.bounces.google.com; dmarc=pass (policy=reject) header.from=google.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1727314373; a=rsa-sha256; cv=none; b=gcBA32vQ8lIhsYDRdd+oP2CFYO8DSbwWbt2msd3HbkWFhpRWQ2tkjxQln1yTKQBF4DxUNU 53VoYudfhmoun8qz/nNJUo1DIM273+9eAa2yrwK4gS7w2iTrd67Kms4EA3JbL/AgrXolOG Yo2TVP0muZ2XfbtHU9JYLs48MMltDSs= Received: by mail-yb1-f201.google.com with SMTP id 3f1490d57ef6-e24b43799e9so598141276.2 for <linux-mm@kvack.org>; Wed, 25 Sep 2024 18:35:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1727314532; x=1727919332; darn=kvack.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=W5MO1wGLHyIriiPw0D1mbZgOsdCV5vF/ShV42LiObvw=; b=ldUT63r+UxBJpp73W0QiJWavW+BqHvAj3vizQ9RoeOHL8+H7W1USViOisgwdI2Pb6f QZhTXKSIVoSJ8dRLRZcB/uLSKUkAmVWZ5B1zAcWmiBbgqYAAGyKlxUR6+jyy+CS9Kv1q QrXa6QisAGWMH8rZLYaRsBMXaclt0+ZdpeMRRX3U4fDObQLt5C5NGkfLQR2eFREsZzcD KojaXg5dkHJ5qpOfjgRiJPQ0ysSIxd/eCLACx82JeEjR0X8irWMiF0K0/FVrY0XpeUdA C3AsrsRyV9q+Abh0Hi3EzLhDosuQ8ihASh6RNtnXIGdxExuzRr1edwLhxpb17EdgSo6P EE7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727314532; x=1727919332; h=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=W5MO1wGLHyIriiPw0D1mbZgOsdCV5vF/ShV42LiObvw=; b=iydJGj/BJwkh2ewWwKbz+FPmW2ZLCaP7yglpH6ahxQE1SoYaQlgQjulxnntOhuHCiq MxRyNF3p3t5gXEugtGo3X9ruABuXJmd8BF93DtCr7DZc0R9vBe7zvNhSiX5KBdCA+aFX D9VvTgMHA9ORyoQeosR0g+tPYgmeg86OhkzN1HBCLTLy73oLkmWSCmIwSMKFkYvOSSk1 Fq+Co6hyOcxTlgI5bQ9mYJALkpdBZnufTgNcojd6njsMDB3hSKvzTkdMpjo4WPFVK+qe FQWpav4QflVc2Q2zo97lWXMw4yHKKszISdSIrGyLkiL3Bl5kzZDgmoSPdeTBSdhKIE3Z 1oVQ== X-Forwarded-Encrypted: i=1; AJvYcCXKTJX1+d7c134lBfLpNNgWEk4IIjza8PA+ASGiRu3jS71/ZDa/GR1q+5Ajzxz4glnAUeizDH9zSw==@kvack.org X-Gm-Message-State: AOJu0YxBi6VJjrbrW6QlLkR1OIkhAuW0hxZ/HEBE1JMHfnp4i+jnvJFV 8MdAyvD3g8Vx6QOEZvXEobbhl0al5mIDS0YRfOyiSOwIA/WLvKTKljZSSCdsrGfTcXXK6rQoXGO q8UJdwytCPLWyWk8gxg== X-Google-Smtp-Source: AGHT+IHu6+UOTvIBD0ygLiAF0PUJIN5o89y1zOQ3DCuJr2JFhL/uFLj8FE3ghAKMMweGgziAQ1oo3bEK7MWZtMkm X-Received: from jthoughton.c.googlers.com ([fda3:e722:ac3:cc00:13d:fb22:ac12:a84b]) (user=jthoughton job=sendgmr) by 2002:a25:bb48:0:b0:e03:53a4:1a7 with SMTP id 3f1490d57ef6-e24da1a380bmr81561276.10.1727314532143; Wed, 25 Sep 2024 18:35:32 -0700 (PDT) Date: Thu, 26 Sep 2024 01:35:02 +0000 In-Reply-To: <20240926013506.860253-1-jthoughton@google.com> Mime-Version: 1.0 References: <20240926013506.860253-1-jthoughton@google.com> X-Mailer: git-send-email 2.46.0.792.g87dc391469-goog Message-ID: <20240926013506.860253-15-jthoughton@google.com> Subject: [PATCH v7 14/18] KVM: Pass fast_only to kvm_{test_,}age_gfn From: James Houghton <jthoughton@google.com> To: Sean Christopherson <seanjc@google.com>, Paolo Bonzini <pbonzini@redhat.com> Cc: Andrew Morton <akpm@linux-foundation.org>, David Matlack <dmatlack@google.com>, David Rientjes <rientjes@google.com>, James Houghton <jthoughton@google.com>, Jason Gunthorpe <jgg@ziepe.ca>, Jonathan Corbet <corbet@lwn.net>, Marc Zyngier <maz@kernel.org>, Oliver Upton <oliver.upton@linux.dev>, Wei Xu <weixugc@google.com>, Yu Zhao <yuzhao@google.com>, Axel Rasmussen <axelrasmussen@google.com>, kvm@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org Content-Type: text/plain; charset="UTF-8" X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: 2D05C20003 X-Stat-Signature: w7ktpw3fysden43ehybdb3y6wsi38pje X-Rspam-User: X-HE-Tag: 1727314533-936139 X-HE-Meta: U2FsdGVkX1/re63ugVKs5+lIUFTzK7b1XJZNLriN28llQcH0rAWyAk5IFKvzwchJ9CyyuffvJM5FvJlrDLU3hcIk7RFoobaOQm8RmxdgX5utOpbOBA3Qt+EEEupPWVyTk5fyu4sN7wOxHCmnRhqc0j4rfxe4+Y922B4GsI5AOzy/MHwXkxhZK3Cs8fYOPELBr8vtpaDIBeB6l4lc46tSC54/ESxyzwaqsrtbVATR46L1Kg5XUu8XsQOnhZrVn548eMtz2X/js0a6a/FuB7SlXd7hBTiReo6zqzL2z9U4DtP0SWKTB4ZkzocxcT6AKCLzuD9U2gPBu6y4xFBElgC3o2PKRGl9yxiWsGIISBL2IBTxZi/KMAbAhYFYkyGRMGiH95F5j/ElvheQJOGPwnVVHG6iW9Mv8mlFWArrwR4k/TrULZRPwhK736EKmx7GPMFrf66ZUHA6bDjcGfClkc3m6LecWfzePyPYtAUjMo5O1akoV5OySCajW2d0Hr6kIR6Klz39iQkq137bQge0J5DNHbfTLkQ2Xs1DRzewISK4SidI0GkMn/0ExFKPzpRCr3UbVVSfEMXHwm0t7YYAw21HqsREv6cTvZIEVaOjSEWenbnaNwlfe1jDql4q9mZhC0VVL0EwFRSzB5I3J2+xxu5fc1aLNnxyHYHfED79MT/HSF4naLmRq5zxOZ6zbKZlJq1M/uixo09qrgWlOsoC1MkY6hukfwj+rPCPr9apmcfVDxYDbOfIckK0JeK7GxBowLXsEs8Oshd25NpDzSYuj7skxBHV+ISsDX0fo+GMbuidRGwwEzrviczgnpn3ha99MkiBE7nP6RddkducN15xq2YdL1sxJrb/3tjn3BNxix62OpyVNK8ARoEEsAwgQNYV6M5t9ffJrrzmqaFli1DXuU/lmM+kFTWlux42P/5r/yrvL0DR8+FqT471x5wbQ+vFMQq9NbPq4rePhpnrxYl2bW9 sP82kLkM mIOfPSW0pSL3MmfpJjm1k1r1YaXDYSAYrvHBfGrJ9i71Yf61oji62yTPLgTTlnhK2GA9s3JWqtr7iLmilmpN/xWY2wtlhrllTV8kW3bcWaNxvBA16SmXexP3eCLx+Zxs+vxrrWQ4vCqml/nqcVwg4Vbm4wPVTfU1NZKKKqAlJ8WKmMVCUZawe9up38zBh89bgMZdDIqFqbwQTjfh89NqoF0HonwnJfAZ9tNzUxSfzzYpcPI2tbPNZvnM7tf8x+RRr83ZC5cm1hw80QHxvKHFAaEht3ufT9qHf7hIeU4Ji2ewtQ6XDXsGG4bcwp61PklpHPH5s4sN/otbU5raggKbasva/ssQPFpjWdTDqbhh2Fr090x/0YvR9PYOQcN8yguY6/9eK1Ej+nzXYn7a6PU3NVab9EAEkjvtVu/fjoBw4DA7GsVB/d/noijjzgcL4SiUsC++nMkOalaQjrtj4xG8rK4iwePqnQsc7eccC+HVv2rIVakmhUccw6obmPz2CDfVoR2egPrZKYqC64qy1mw1PrxbPAGaz/P3g/rn0nebsPURXRfuysE63YXctHqivwVJFnjMQRffONQXOu9gNqn+asKBFquYhvd/ubtzR5FgX4HQJFKsl6AWl89uKCw== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
mm: multi-gen LRU: Walk secondary MMU page tables while aging
|
expand
|
diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h index 98a987e88578..55861db556e2 100644 --- a/include/linux/kvm_host.h +++ b/include/linux/kvm_host.h @@ -258,6 +258,7 @@ int kvm_async_pf_wakeup_all(struct kvm_vcpu *vcpu); #ifdef CONFIG_KVM_GENERIC_MMU_NOTIFIER union kvm_mmu_notifier_arg { unsigned long attributes; + bool fast_only; }; struct kvm_gfn_range { diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c index ec07caaed6b6..8630dfc82d61 100644 --- a/virt/kvm/kvm_main.c +++ b/virt/kvm/kvm_main.c @@ -867,6 +867,7 @@ static int kvm_mmu_notifier_clear_young(struct mmu_notifier *mn, .may_block = false, .lockless = IS_ENABLED(CONFIG_KVM_MMU_NOTIFIER_YOUNG_LOCKLESS), + .arg.fast_only = fast_only, }; trace_kvm_age_hva(start, end, fast_only); @@ -902,6 +903,7 @@ static int kvm_mmu_notifier_test_young(struct mmu_notifier *mn, .may_block = false, .lockless = IS_ENABLED(CONFIG_KVM_MMU_NOTIFIER_YOUNG_LOCKLESS), + .arg.fast_only = fast_only, }; trace_kvm_test_age_hva(address, fast_only);
Provide the basics for architectures to implement a fast-only version of kvm_{test_,}age_gfn. Signed-off-by: James Houghton <jthoughton@google.com> --- include/linux/kvm_host.h | 1 + virt/kvm/kvm_main.c | 2 ++ 2 files changed, 3 insertions(+)