Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp477962iog; Wed, 29 Jun 2022 04:17:30 -0700 (PDT) X-Google-Smtp-Source: AGRyM1ssLohrzRL89Yy8YnsC6ZPKaOCJoLCErt4lS8jpCUMZItXYQJuaLeCWDDHgSch8dMEhprJw X-Received: by 2002:a17:90b:388c:b0:1ec:d129:704 with SMTP id mu12-20020a17090b388c00b001ecd1290704mr5264070pjb.98.1656501450568; Wed, 29 Jun 2022 04:17:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656501450; cv=none; d=google.com; s=arc-20160816; b=vzs0GFS5utoeGz01sVB1QmUqPKhiBPmehEvxuvixxDoDtD9KN333qdwwk69cCE/NLL lE7vDMF9I/6wysTyq36oc/EtNX7ayWDWuLOGfV1W1icWqE8L/+vBx5MYgCG37uI/N7aT OOt7XEybGQ/QKnAWqo2y9NddeMgAOa9BNFSXTKdRVQ89xmqjm4O0BtywPruHxlPxGI3s vNVcFzPMyll9PzkwtrwGgDjW5yY1wPrfBKVsspORYvogTo3Mr596XUxrzB1aiDaCgW3X bVSxYwEgDUbV4iZa0d9954mUWohO9FhaXEiHHPgSQFIXddmKV8WHys77m3utLa+d5qeu aJWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:in-reply-to :subject:cc:to:from:message-id:date:dkim-signature; bh=1ch/leGU2YnwQGZjdmYqdVVef2SznmIwavJCMJz/mBY=; b=UDb1eOhe6kkO+9EUBw9H5Hm2kXHHZdNuv8WyuSLfP+HINaNiO4iYQJ5ZqJmV3T4o+j PjIdX1aPBehEN28DnjZ0fPa0q1rn/csRzqJqb3K7JPjvLnh/YjB0yzig71k7baSMLrpw vV7dqHC/kKFGnLiTYALG/JELDtIzl89gvWjEgZdBQXLteG7xa277x8bkWrKmtcrIlfl6 i4UtsO1BjGa4tfLSm58XDFkLdb2U6IMuKeCt17xXmWDPut+57UVDsqomf4sF/REIfp59 G+OHovVk4FZzljsTVuY/r+1v02odCT4tQNCZSD1u0VfLA8XNPPN4sZo/qRus2esO74MP lXug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YsUnTHzk; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ng8-20020a17090b1a8800b001e299f85017si3486621pjb.63.2022.06.29.04.17.18; Wed, 29 Jun 2022 04:17:30 -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=@kernel.org header.s=k20201202 header.b=YsUnTHzk; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233362AbiF2KaQ (ORCPT + 99 others); Wed, 29 Jun 2022 06:30:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40174 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232565AbiF2KaP (ORCPT ); Wed, 29 Jun 2022 06:30:15 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1C47B3DDD5; Wed, 29 Jun 2022 03:30:14 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id A4A1E60ED3; Wed, 29 Jun 2022 10:30:13 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0DCD3C34114; Wed, 29 Jun 2022 10:30:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1656498613; bh=f+r5AD87A2KzRDAwsZTkOVMjV07LTP4CTwRCJZQva5s=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=YsUnTHzkvp2/drvVhLka9zIWtKrSY9ZgFAcl4J1yb9YwfwFx2FV07LjpSKR2rhSEt v8sXw9gJoFZjONHN+tjOulSyKtKPlQ8sx6lF1YvDxSIHw/72YaVvYkbU40fY8Whzjq ZdV1l5iaOtb+7RdSzLnuX1PzYckmPmz97AT5RPyPArEJnK1oPtXKr4mo9EBJhx6KCC Ve6nnbmTpJ+27B79sMo71q6tmgCRvdz1G+TYFhw5OkMWmNt6EYv6JkjlYaAIDv0u0T RD4XUvxWgV8WhokhE2P6WgdNnISAGlkAFHp7AuKG7JWIC3dJz+Gis0QnIK9OFltolk U/ajRDsfjVZ3g== Received: from sofa.misterjones.org ([185.219.108.64] helo=why.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1o6UxX-0042Se-3o; Wed, 29 Jun 2022 11:30:11 +0100 Date: Wed, 29 Jun 2022 11:30:10 +0100 Message-ID: <871qv73gp9.wl-maz@kernel.org> From: Marc Zyngier To: Yosry Ahmed Cc: Tejun Heo , Johannes Weiner , Zefan Li , James Morse , Alexandru Elisei , Suzuki K Poulose , Paolo Bonzini , Sean Christopherson , 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 2/4] KVM: mmu: add a helper to account memory used by KVM MMU. In-Reply-To: <20220628220938.3657876-3-yosryahmed@google.com> References: <20220628220938.3657876-1-yosryahmed@google.com> <20220628220938.3657876-3-yosryahmed@google.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/27.1 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: yosryahmed@google.com, tj@kernel.org, hannes@cmpxchg.org, lizefan.x@bytedance.com, james.morse@arm.com, alexandru.elisei@arm.com, suzuki.poulose@arm.com, pbonzini@redhat.com, seanjc@google.com, vkuznets@redhat.com, wanpengli@tencent.com, jmattson@google.com, joro@8bytes.org, akpm@linux-foundation.org, mhocko@kernel.org, roman.gushchin@linux.dev, shakeelb@google.com, oupton@google.com, Huang@google.com, shaoqin.huang@intel.com, 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 X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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, 28 Jun 2022 23:09:36 +0100, Yosry Ahmed wrote: > > Add a helper to account pages used by KVM for page tables in memory > secondary pagetable stats. This function will be used by subsequent > patches in different archs. > > Signed-off-by: Yosry Ahmed Acked-by: Marc Zyngier M. -- Without deviation from the norm, progress is not possible.