Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp295372imn; Mon, 25 Jul 2022 16:58:17 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uLbU8yGIVtuUXy5kq+qn2RVc4NvZjH9x6/64I+sRcZfzu0usE9MpwgEstwTZjTt8i2Dt/T X-Received: by 2002:a05:6402:3707:b0:437:61f9:57a9 with SMTP id ek7-20020a056402370700b0043761f957a9mr15408040edb.1.1658793497246; Mon, 25 Jul 2022 16:58:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658793497; cv=none; d=google.com; s=arc-20160816; b=qgRab4HXvKQJcLCJkBoxDFnTmE8voaEutmG+8yinwbghRadN39+zi6XgnCm9y+v+XS lGPHHy4QA++McbZ/Ny6/Akp4uuv6y2nOKmxo6BRTGIesjCnjBLvt/djEc2MOZjrru6tk GzMVadaa9zQ1vErNoQNSDSxviaD0po6L4si8VdCzDxAkM6vnGMTpWecJNfQwBPy+AGop K3qCbT4NOdBy74AEd/uSuPIUmAHD9Zg8NVD6ZgHwQqrbSo3NELZR13P+QJu4qimSXMLh 0kTruYCs6T17v+yk3LNtVXvRTqX4kscQZLKF/KKblvmK/VIxkGRJxoOQQN6UdV4rca1j AXCA== 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=LBRZcpT2Oj7kZwiIgXTNapPpF8SACvWYM09RAzea9XQ=; b=RJOXNJaux00rUhIMq61WKlqEzBFIOLXsiuKQJgeJtfzG/WL7PWEh9s/mkECfItDrrj 3amrBUF7gu6BE+mrn1AbAqmjKBFYhvTTOP9/m9lVpXge23MJKnW2ayiG1xHMTi43AHZf t+esjX5e6JcibhD3ddpXmudsi5JCzzSikabbPELsj03r4HbbCGy6CYol2qZISF8JDnJ9 JWRJcDEni/5xVA+pzI3ceJELUGOg3WZI+ZuREkSXUmc74vXFciEKQQ3S2VrU1LM217tv yYR2t17Ti0AvecHPNjd9vOTEtP+fZd/HP1hv/tkgBX5Qu/mSGSIQIFGuxxQLSC3aIE9j scBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=h+5ZbQek; 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 dd14-20020a1709069b8e00b0072f9c64493dsi598051ejc.935.2022.07.25.16.57.51; Mon, 25 Jul 2022 16:58:17 -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=h+5ZbQek; 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 S237085AbiGYX10 (ORCPT + 99 others); Mon, 25 Jul 2022 19:27:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52994 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231424AbiGYX1Y (ORCPT ); Mon, 25 Jul 2022 19:27:24 -0400 Received: from mail-pf1-x436.google.com (mail-pf1-x436.google.com [IPv6:2607:f8b0:4864:20::436]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 687672655D for ; Mon, 25 Jul 2022 16:27:23 -0700 (PDT) Received: by mail-pf1-x436.google.com with SMTP id w205so8423622pfc.8 for ; Mon, 25 Jul 2022 16:27:23 -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=LBRZcpT2Oj7kZwiIgXTNapPpF8SACvWYM09RAzea9XQ=; b=h+5ZbQek7/GzuRNvS4l7gk1bhglJKDpog5wTMzwBryAuiqfghqCO5v6L1zSWDtLQXP mNpSjOm/8xh/qiD+OrTLt9WI244jmkaeoc5jMl5PShmxLxgv9+XiCjQSxwhg74i3QQyO KuU5V4lF1zcRfEUKMsu+RKFMyl8W77IFbaaZ/by6j3PhSSa7fLdZb2laJLEhFCBvYoZC rYhoAR3XPqVU1/4rlSPAm7nLpSXhmHHrIZbDIBNUw2i8RsgTxMX6G/9AtyBosZOs6xVJ JVqMkG4orZ1meAcN8hOnAoTR7oszSMN3qYErztmQnlB7OyAvUg5tEO65VrbRDo4mY47U wE7g== 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=LBRZcpT2Oj7kZwiIgXTNapPpF8SACvWYM09RAzea9XQ=; b=ij/3ohbGdWKS9FUckvLTD1L6TmFqcjRnDidxHyZ4VAlLLbSm4jyDn94HJ0DGdh9OHl hfV8pFAWvCoKQWJgEKUGuWhpB0v/H8BQBJI9OWCWh3pbZ39g11c3O4vdAjTPpKTLqWGH jY6rEvNxraj/Nb5rHpnN/bEQRfz6QaNmKV4l6tYvvPdtsemxoDnpDl3uK5zAXfI7Eo0b /vdm/+fRp/X6w6kdPbAkLm860+prkMSaHTnAGqBAZMtdVMQVPteLggrpbHHVY0WRdwu0 X1NQTW8cHazKOsC0g6XD8KBKz3yQOPWp3v6mrZkK96h3G89Tjz2972kf2ELQSXoVdcS4 Pvhg== X-Gm-Message-State: AJIora9b72R0H1ceO8VK3rJn5Ace+BYGGhPc19+dxpbIATdc6i6wiDTS JafVyNbIgFA9Zy8UgRvFug6CDA== X-Received: by 2002:a05:6a00:bcb:b0:52b:34e3:c043 with SMTP id x11-20020a056a000bcb00b0052b34e3c043mr14899628pfu.64.1658791642874; Mon, 25 Jul 2022 16:27:22 -0700 (PDT) Received: from google.com (7.104.168.34.bc.googleusercontent.com. [34.168.104.7]) by smtp.gmail.com with ESMTPSA id b14-20020a170903228e00b0016d3ee4533csm7868349plh.18.2022.07.25.16.27.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Jul 2022 16:27:22 -0700 (PDT) Date: Mon, 25 Jul 2022 23:27:19 +0000 From: Sean Christopherson To: David Matlack Cc: Paolo Bonzini , kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Yosry Ahmed , Mingwei Zhang , Ben Gardon Subject: Re: [PATCH v2 4/6] KVM: x86/mmu: Track the number of TDP MMU pages, but not the actual pages Message-ID: References: <20220723012325.1715714-1-seanjc@google.com> <20220723012325.1715714-5-seanjc@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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, USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL 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 Mon, Jul 25, 2022, David Matlack wrote: > > diff --git a/arch/x86/include/asm/kvm_host.h b/arch/x86/include/asm/kvm_host.h > > index 246b69262b93..5c269b2556d6 100644 > > --- a/arch/x86/include/asm/kvm_host.h > > +++ b/arch/x86/include/asm/kvm_host.h > > @@ -1271,6 +1271,9 @@ struct kvm_arch { > > */ > > bool tdp_mmu_enabled; > > > > + /* The number of TDP MMU pages across all roots. */ > > + atomic64_t tdp_mmu_pages; > > This is the number of non-root TDP MMU pages, right? Yes.