Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp16484901rwd; Mon, 26 Jun 2023 10:35:12 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7ZH+SheAMWDe2B2dqvuxOc98FOPqvh062fQJQtoPNtybWH0YZCcjY1s62dG3f+o+YhDJlp X-Received: by 2002:a17:90b:3684:b0:260:b83e:89d4 with SMTP id mj4-20020a17090b368400b00260b83e89d4mr28155558pjb.15.1687800912717; Mon, 26 Jun 2023 10:35:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687800912; cv=none; d=google.com; s=arc-20160816; b=pW1Xs5k0ysHJUOKeiwcbTWbSqxfOwZS40JxHjduOZ3YkNDeggfs+4RcU1QeX8aLba4 gIEcrGPAyehPFSXt1RtL9bDjqvroHTJF+5bEUOt/xD7urSPHlAS2arR2ASLvPstFTzJN rMxvfaflbPF5bqn/UZPWruT8jJXIfBu2q6z1LsSrrFeACTk4arFCKra4rN3vKfT221t4 6gl4vkZlFlr+54w2HH+//7n1r61HyUpdQVAXYUHmw3fLA1dqJd4AdK6vgPEyBQI+Lt/j fZ5zWobbdng4tgv8j4l9/r5E8eMkTx0Lyq+1UbiBjS+U507DyirGJR9Aoee1r9A1Pr8i B8Bg== 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=f2t/6AuCGHu+g1mzUi3uHQSoDcB61+uw4A1sl2aTsDM=; fh=O5GWeYF3Bzho3OR3Nem3V9E6S8CPazqfcIzF2fbrtQU=; b=a/KIL3Sy0DMKh9oQ/D0vW+7e2BzV8yGhZBxX0ibRp3V6BYC/ObLUSGzVgXh2X0Jt28 UHKeWg9704idMj+afNLXzwUxoZJQo43u9J/9WErY+KSAgqtKNcuouhGpYjwm/g5TFTQ4 p6fz+ZetfmHpvS9xEmopavcdVToBvJ4rbQUzRriTkbSHxRCHLaO9a22uPiPZYqhc3C2Q bxKBnkpkqywaqrqJ1rvCqLlsj1FghGLcUb3KbR+6JSVFVQRwp5AWTTymx/VQ3uFEDhWF MVZTIRQ+Ta2pWg+Jue/agyHrdPSUTxddEWOBqnszZ6nVoW0Kzt8daRiN1r8i5YjzdX5q 6aQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=VL9wL2ou; 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 ob13-20020a17090b390d00b0025bde5b7785si8868260pjb.105.2023.06.26.10.35.00; Mon, 26 Jun 2023 10:35:12 -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=20221208 header.b=VL9wL2ou; 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 S230217AbjFZRGo (ORCPT + 99 others); Mon, 26 Jun 2023 13:06:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48168 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229666AbjFZRGn (ORCPT ); Mon, 26 Jun 2023 13:06:43 -0400 Received: from mail-pl1-x62d.google.com (mail-pl1-x62d.google.com [IPv6:2607:f8b0:4864:20::62d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 19F26E7B for ; Mon, 26 Jun 2023 10:06:42 -0700 (PDT) Received: by mail-pl1-x62d.google.com with SMTP id d9443c01a7336-1b539d2f969so23596195ad.0 for ; Mon, 26 Jun 2023 10:06:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1687799201; x=1690391201; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=f2t/6AuCGHu+g1mzUi3uHQSoDcB61+uw4A1sl2aTsDM=; b=VL9wL2ourXiEvavwXqheIk73JPQwGGIH/H2tda9/Zck/TvRhVxV9oYsIvIrgQb2uoR czgVjuZJvSCtc/cyiZpI1tdiOBFAQQxEZNvUpN/teRyo3rlg7ua/6w2MBf4PNwaTjIGC NtvQawe+cOaK43vt2lJ5HRfxkQyGbEIAOvS1iFM5Z275b/luF8a5GGF7Lf9NxkJ66W4P Ud2s3StNuqd0sR3p6jbbkyzVCnoT9jc3SvLXCJl/SgCqy6x37qogwLNqITcPb1H79Q0Y ll7gBl0y8iSAzAvqj/f1e1CjK0Nrbgego8zQl40fh8WlXDSt4H1GSgzTs7teof7ND609 R+Dw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687799201; x=1690391201; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=f2t/6AuCGHu+g1mzUi3uHQSoDcB61+uw4A1sl2aTsDM=; b=gIWYMOp09upsho/5WWNhnJMhijtrwbEOkPUQxHSCo32DqYFPI5otrsPy1BnBKadC/B GNuR0uRH37Jrt1KERpgYCsOepmRGhw3dx4Qywbq5gt9rSRb3+WC3M04iss7mMdznDTvN tjKuzAMkDpiC0U2KQhpufixlX1Qf4G8NookajnH0kpKBq/0LkrY5QZRjuTevqzXc5R4O 3y4YNi66lQzinfTZXrarPG7BF1luE4H7teqDi8LttfU+Gw1gqDAiY4d5sr66YNCdqlh/ dcO/X6mxLTr//DhTizAsnv4P+uaYWY5m0mQsi6VsbcRQUv8uvYoJZ2cKQusgalCXUt+i pdew== X-Gm-Message-State: AC+VfDyvwVAU8eWfZul9Sa9HSz4xBdrOoN44FzW2fuXi5WfKR2NhbuSF zt46y9iwl31M9k33vpVmjMFeyg== X-Received: by 2002:a17:902:c1d2:b0:1b5:e30:94dc with SMTP id c18-20020a170902c1d200b001b50e3094dcmr8092819plc.7.1687799201193; Mon, 26 Jun 2023 10:06:41 -0700 (PDT) Received: from google.com (60.89.247.35.bc.googleusercontent.com. [35.247.89.60]) by smtp.gmail.com with ESMTPSA id s12-20020a170902988c00b00198d7b52eefsm4420214plp.257.2023.06.26.10.06.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Jun 2023 10:06:40 -0700 (PDT) Date: Mon, 26 Jun 2023 17:06:35 +0000 From: Mingwei Zhang To: Xu Yilun 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: 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=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 Fri, Jun 23, 2023, Xu Yilun wrote: > 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) Will add this one. I will avoid the "(gfn + access)" since that is already described in the comments inline and it may subject to changes, eg., adding more bits in the future. > > > perform a reverse map from a pte to a gfn. When role.direct is set, any > > Just "perform reverse mapping" is OK? I will tend to leave that as is, since it is not a major issue. > > > element of this array can be calculated from the gfn field when used, in > > May remove the "of gfns" will do. > > Thanks, > Yilun Thanks for the comment, will update it in next version. > > > -- > > 2.41.0.162.gfafddb0af9-goog > >