Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp11177910rwd; Thu, 22 Jun 2023 09:39:30 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5ughvHiDcGRYJsIQK5z3p1Zd0KP++rhsn4jDql5psywy2M/yzZdbjM87FTinaKhGr6l0yj X-Received: by 2002:a05:6a00:1501:b0:66a:33ff:2bb3 with SMTP id q1-20020a056a00150100b0066a33ff2bb3mr8742187pfu.27.1687451970349; Thu, 22 Jun 2023 09:39:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687451970; cv=none; d=google.com; s=arc-20160816; b=DvOiKCqj4fKIK/SC9y6uyyPWB003cUkyuX8Rahel4crC1ulnSuM4cHNt+rrK1nO6lk t/wYpvE4cSYif3ezbf/YogtiSgXWREwMQ04bOmx99Omadek4PokCbyHYx4SdsfmPEH4z PRD6O8yvN8cA6hAokRuPYUnCEIUWA44IbNJs8dQCLx/iWFfoLl8E8K9qDW3wcXW9XNpR EsAf9I3KqECUfapu4OaOpGA9BFkwMV0yLxPZK9JueTI3no6RU16PhnYt4OdYEHdrtTw/ 1WJ7xNd1gjF3L0LTEimf4Y3nQby4ctgjVA8Ci6xNJS1gr9XzYYXkEHkqTJPrVmnLx5ZU S/nw== 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=Y+mwLdVROxc/c76qHgdE5oqr9Noh2MC+O37OE/RT+RE=; b=r9kbHj2AysQX2Ee+bfpRijDkxZNA+HxXe40YjnvyNazJX0SzWaIvgWxOuyVa4nPwol qLTCIqbL1wvaHghcA0c8ju3bZypTMqcT6NCAgfFrypnkDQRIuSmxy+2gBAoaNYi9LiJY Rkv6dSQjqVhUjtIJHS3ZWUmhsZqJp5Tz3yCNgLlXWGKuiCykLnJWcAZq9nf8UMLriSza jNauH276HhikVFy/LKzJUdmAXeK8g8m/StWjnqS2B9r7QMiqWZGbLl1eWauOHGjhSvT+ YWejEPjkqAuM6FT8wl7M2vaN6+ZbFFblVIE5YvuMn4atJC921MeWF7YlVjnOq2iRG7Nz nktw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=LPqR98QP; 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=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n7-20020a63b447000000b0053f9a37c607si7061349pgu.711.2023.06.22.09.39.18; Thu, 22 Jun 2023 09:39: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=@intel.com header.s=Intel header.b=LPqR98QP; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231135AbjFVQcS (ORCPT + 99 others); Thu, 22 Jun 2023 12:32:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60688 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229628AbjFVQcQ (ORCPT ); Thu, 22 Jun 2023 12:32:16 -0400 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 155AC1BD9; Thu, 22 Jun 2023 09:32:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1687451535; x=1718987535; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=iP0/anX5cEsrg5k0eU+acU3r2Q4ClUJN8yRVCkyvgZ8=; b=LPqR98QPWOdlXU9GbvuQkKGRJalO5V0EOqpUbXtY47UK+lm8dGJju8Dg GPmOImwlMlm4YHOjDpiea/VyPzTd+V7l+3XrTzGxew4TDPPGm/2rfzZ9l SzN8MMAdebNAWPDg63sTrxquA8LSzIhJZIj3WuI8aY/bHVDXcenhh1LMK UC8Vwv37HMLwfDzolHINQHnq7RtZ3a6B4BukXK7YQCDEDE4Vz5kmEAfBP Ah2YXZSY+du5Q5XbemepTBYucCHZsmOwuHUkmmpGDsZdtomBrArkSNId3 spy3BD3M3dna0hqBKU96gpcJjO9V/gPKwDNQJEnaoaG4l3TVURVVa46tW w==; X-IronPort-AV: E=McAfee;i="6600,9927,10749"; a="345297890" X-IronPort-AV: E=Sophos;i="6.01,149,1684825200"; d="scan'208";a="345297890" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Jun 2023 09:31:53 -0700 X-IronPort-AV: E=McAfee;i="6600,9927,10749"; a="749375192" X-IronPort-AV: E=Sophos;i="6.01,149,1684825200"; d="scan'208";a="749375192" Received: from yilunxu-optiplex-7050.sh.intel.com (HELO localhost) ([10.239.159.165]) by orsmga001.jf.intel.com with ESMTP; 22 Jun 2023 09:31:51 -0700 Date: Fri, 23 Jun 2023 08:30:54 +0800 From: Xu Yilun To: Mingwei Zhang Cc: Sean Christopherson , Paolo Bonzini , kvm@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Jim Mattson , David Matlack , Ben Gardon Subject: Re: [PATCH 2/6] KVM: Documentation: Update the field name gfns in kvm_mmu_page Message-ID: References: <20230618000856.1714902-1-mizhang@google.com> <20230618000856.1714902-3-mizhang@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230618000856.1714902-3-mizhang@google.com> X-Spam-Status: No, score=-0.2 required=5.0 tests=BAYES_00,DATE_IN_FUTURE_06_12, DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, SPF_HELO_NONE,SPF_NONE,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 2023-06-18 at 00:08:52 +0000, Mingwei Zhang wrote: > Update the 'gfns' in kvm_mmu_page to 'shadowed_translation'to be consistent > with the code. The more detailed description of 'shadowed_translation' is > already inlined in the data structure definition, so no need to duplicate > the text but simply just update the name. The definition of this field is changed, but apprently the description here is for gfns. It leaves some confusion if we just leave them unchanged. > > Signed-off-by: Mingwei Zhang > --- > Documentation/virt/kvm/x86/mmu.rst | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/Documentation/virt/kvm/x86/mmu.rst b/Documentation/virt/kvm/x86/mmu.rst > index 561efa8ec7d7..149dd3cba48f 100644 > --- a/Documentation/virt/kvm/x86/mmu.rst > +++ b/Documentation/virt/kvm/x86/mmu.rst > @@ -221,7 +221,7 @@ Shadow pages contain the following information: > at __pa(sp2->spt). sp2 will point back at sp1 through parent_pte. > The spt array forms a DAG structure with the shadow page as a node, and > guest pages as leaves. > - gfns: > + shadowed_translation: > An array of 512 guest frame numbers, one for each present pte. Used to guest frame numbers -> shadow translation info (gfn + access) > perform a reverse map from a pte to a gfn. When role.direct is set, any Just "perform reverse mapping" is OK? > element of this array can be calculated from the gfn field when used, in May remove the "of gfns" Thanks, Yilun > -- > 2.41.0.162.gfafddb0af9-goog >