From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4C0C9CCA480 for ; Thu, 7 Jul 2022 21:11:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236758AbiGGVLf (ORCPT ); Thu, 7 Jul 2022 17:11:35 -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-Google-Smtp-Source: AGRyM1so1CUFpRb/W+9u8G0bNWrE/aR8hrt1uZojq1495gVto4hEMFt63EXSJhIZ1QbYWGtmOiiswQ== 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> 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