Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp4190867imw; Thu, 7 Jul 2022 14:24:19 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uPrRxm7krd+pSYIkXaIFOPvTjCWdE5vPuYx9nDIoaVQpJ/kZe1tW7t8+phXLq4gtOCN//K X-Received: by 2002:a17:907:16aa:b0:726:9fe7:a989 with SMTP id hc42-20020a17090716aa00b007269fe7a989mr110815ejc.760.1657229059271; Thu, 07 Jul 2022 14:24:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657229059; cv=none; d=google.com; s=arc-20160816; b=MUdD/FZkRdU9hhMhc29WX/eS+a+aGCYbNKGI15zK6mb0iRd66j86sF0aqqCZvWL/u0 kSsK75+7tT5M6FilAEdlC/r86mK5Gy3Uv5smmLt0aR6ZC9q7wIB8WlJCdfJ5DmAtN9Qd MLe+je31cB+okh5bIiicejsgMvEYIceLM3v+Dx0AUG1lWJ5gGKcGVVJWvkfSNflDMRDf RCqqFZMDB+ZmvW+uYjm9JgS7dtRh+ZSI7rVFkoyIOPUlX4zA+d+Wux+FeE4IYEPIYRzA Nq/STolJQ7YHUMGSCgY4ta4hW5z+gHMzqKQURqnj0hOh69UEXXOcfxmNeK9/CbKLg6oG OcYQ== 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:date:dkim-signature; bh=ZTnfo6xRgRnDJAawujjn6RVFJwv9JbaWoUFvSQYT7gc=; b=vdoK7Wdf/pMp1ieAD3hjTALQIZ2PI2/pOJPhSE2QZhx7a6zPkO6VJ4SzYFjV3TH5e7 C8ZgRtgqIzWnyjuQBvLPcSvOjc8hu68V/1Zig6McwEk3qgmGHlJOl1RqFIZO07XHMwPu vP3WfPibXg6oaVUdNxg9HUk2ognZUlXlU46Fm3r9/OSbRFp9S7gDE4SV1iHLWYQvi9/R wck3rp66BzA+dSdGK1LrmwUpLl3yltWfw30vCbDXuRbwe3g3qMnCnw5x6xqxh9wZKXQP 39LzGB7eAt2zLXzi782E9OyUeZcS2nTSxCB+u2in3zSOlfAzzH6m+kGQw77n7JBviftp Ba/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=b6mVfEU3; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y10-20020a056402440a00b0043a50590dabsi5387914eda.87.2022.07.07.14.23.55; Thu, 07 Jul 2022 14:24:19 -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=@google.com header.s=20210112 header.b=b6mVfEU3; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236742AbiGGVLe (ORCPT + 99 others); Thu, 7 Jul 2022 17:11:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58668 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236741AbiGGVLc (ORCPT ); Thu, 7 Jul 2022 17:11:32 -0400 Received: from mail-pf1-x433.google.com (mail-pf1-x433.google.com [IPv6:2607:f8b0:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 750F42E9F8 for ; Thu, 7 Jul 2022 14:11:31 -0700 (PDT) Received: by mail-pf1-x433.google.com with SMTP id y9so7620725pff.12 for ; Thu, 07 Jul 2022 14:11:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=ZTnfo6xRgRnDJAawujjn6RVFJwv9JbaWoUFvSQYT7gc=; b=b6mVfEU3B1Kz+nxNI3jjT4RpusLpAVsVtGCThcqz2WxsNk8Y3tI17P9xznRGksBAb+ 8GtcLKGD6SqLecoii/sJRZBzYe/oHHfCmBQ6KyjOUKEs9JbhsSO8LlGC7Gg3qZOKpu6t R+U7jZ4wKm/B+FwKq2Z/bXAYtTf5NK7zJgDRNJHgaUVfPSOGNvaRqHsaiOSfkPwSd99I 8OUzNcHpzBwaMfSLWuFKpCaWhXyShGNvFjcSuQGRbO512wy3OM/j+/9PUvBMJJDZlQt4 pVg+ex6bvlhCnCQYp6vGAzpwe0MyOM/LaQwAKdRF13SuWllj3O+oHHym/YUmAyOh3Fqs 358g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=ZTnfo6xRgRnDJAawujjn6RVFJwv9JbaWoUFvSQYT7gc=; b=xp65gWRph+mNJX/q7fv8WFp0o+DMwRdYa/xP5pwtVG5q69qJSmUb4riQ69saB3lcUy j2VHNe7FBkeeALBlJ4qGcaUWifu7FJKlFZwjGlg5FsARrgLs4hQcwfFf7u0VpvlQvNEw Pqfy16hx0Gw0TTfotyfw9F4VpiF9ZG8DW+0ZXxQ+zUoCr78uT/iEvEUS3lIPNHJ6oGo+ D8YR+VRMF4fp/DEHK592ZZB5YtfDzN2KnyigCTAt6c2hoWsBsijA+PFDxLeMaDL03qT3 BaOHFiqhWvL4wDkOgqYfIQ2PALDcfc2DzkIN5+ldJZwNnLkC+7MUj71IH726wB7SSZtP 62Mg== X-Gm-Message-State: AJIora9dMH6bWE33t35mRHDtLMQflUw/9upvqlueorIrgViIusUxKBeC wsl5SmbYspQI4puMG2KEk8DoVg== X-Received: by 2002:aa7:9215:0:b0:528:56ba:ccec with SMTP id 21-20020aa79215000000b0052856baccecmr179112pfo.24.1657228290881; Thu, 07 Jul 2022 14:11:30 -0700 (PDT) Received: from google.com (123.65.230.35.bc.googleusercontent.com. [35.230.65.123]) by smtp.gmail.com with ESMTPSA id k23-20020a628417000000b005289fad1bbesm3853638pfd.94.2022.07.07.14.11.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Jul 2022 14:11:30 -0700 (PDT) Date: Thu, 7 Jul 2022 21:11:26 +0000 From: Sean Christopherson To: Yosry Ahmed Cc: Tejun Heo , Johannes Weiner , Zefan Li , Marc Zyngier , James Morse , Alexandru Elisei , Suzuki K Poulose , Paolo Bonzini , Vitaly Kuznetsov , Wanpeng Li , Jim Mattson , Joerg Roedel , Andrew Morton , Michal Hocko , Roman Gushchin , Shakeel Butt , Oliver Upton , Huang@google.com, Shaoqin , cgroups@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, kvm@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCH v6 3/4] KVM: x86/mmu: count KVM mmu usage in secondary pagetable stats. Message-ID: References: <20220628220938.3657876-1-yosryahmed@google.com> <20220628220938.3657876-4-yosryahmed@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220628220938.3657876-4-yosryahmed@google.com> X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=unavailable 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 On Tue, Jun 28, 2022, Yosry Ahmed wrote: > Count the pages used by KVM mmu on x86 in memory stats under secondary > pagetable stats (e.g. "SecPageTables" in /proc/meminfo) to give better > visibility into the memory consumption of KVM mmu in a similar way to > how normal user page tables are accounted. > > Signed-off-by: Yosry Ahmed > --- Reviewed-by: Sean Christopherson