Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp16637527rwd; Mon, 26 Jun 2023 12:53:32 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5t/70MieoEE6OqXGkgeZotNJFRA+dUwvEbDVCT3xyE+VWnClG+dv/bVfFm3lJ2UOP+tyQB X-Received: by 2002:a17:907:940f:b0:98d:4aa0:ffce with SMTP id dk15-20020a170907940f00b0098d4aa0ffcemr10681080ejc.18.1687809212149; Mon, 26 Jun 2023 12:53:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687809212; cv=none; d=google.com; s=arc-20160816; b=zcilNEcXNHRc9JMW2nMR7AjinrLYBzXuKNxgD3woGYJUuj1LVfr5ABE/dCNHVZAHKb vKmpFc5y+8Ch1AGZTQytRYCO/QTWrMPPAg8Vm6KV4wwGtOOh6d1zhE66yX2dgKwqS//J cIeLSXXi6U5eXlxAtIXvlabXqTUlS+Phyoagijf7iEgJCSLzDba72CxVV/F6iuD5KRBI y5Hw7vf103WmUx9vNARBUf/H4S0RoIgcfX1PoxSaKUCi1dXxS0wskygHXSFTw2pMQKD1 q/yvnVucv+UdJeBZVI3GHh9Qyl465zsZIEhgIKhMsI51+6T7z2Qjr5oqZvU5KrE75h3P 6Ipg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:message-id:references :mime-version:in-reply-to:date:reply-to:dkim-signature; bh=0/miHGwTxT7US89Pp4p1SvRY38MOXEBbZOtBg20Cazc=; fh=4e3puReJ7DjwMG6rJqHJp2nX/a/7QqKKhs1FjQcufg4=; b=rfI0wcGaxA9PsWROltNc4yZxyYSyUs11qLfIaG8JLS4YmbB3k4Bt7DxQC2FYh9wmvM 0Viu189DnhKkl4xnbXzjajTqSEvVtSWc8Db7g84ghg9cX2AC8NiUBsFNQ8q5x0t2kn4N E3Y63Cj2PsO/C5c4aqU9hHQCSjKhpFYwVr88DWN+Gr8+bvhurcnnSfn35+y2Ge7xgFON OaXJiU8SMqHtFFH/GO2oGmcx6s0uYDj9IDLqOiHgKt8LGNkhPE3C4YbfwTIhN6epMzVo s6l00w9RZDS7o8BBve2q17iKwCqsPCQyoAc76PISzy3ZUdnGaeFPc9adpx7S1Lel+gVX Pw7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=EHDAWz7Q; 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 g20-20020a170906595400b00987a43ee395si3185559ejr.741.2023.06.26.12.53.05; Mon, 26 Jun 2023 12:53:32 -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=EHDAWz7Q; 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 S231771AbjFZSUn (ORCPT + 99 others); Mon, 26 Jun 2023 14:20:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35044 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231666AbjFZSUd (ORCPT ); Mon, 26 Jun 2023 14:20:33 -0400 Received: from mail-pj1-x1049.google.com (mail-pj1-x1049.google.com [IPv6:2607:f8b0:4864:20::1049]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8675110CB for ; Mon, 26 Jun 2023 11:20:26 -0700 (PDT) Received: by mail-pj1-x1049.google.com with SMTP id 98e67ed59e1d1-262e619fb5aso810514a91.2 for ; Mon, 26 Jun 2023 11:20:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1687803626; x=1690395626; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:reply-to:from:to:cc:subject:date:message-id:reply-to; bh=0/miHGwTxT7US89Pp4p1SvRY38MOXEBbZOtBg20Cazc=; b=EHDAWz7QvBILtIie52w2HPumTE/XxMe4cOKd0HoxlAziAbEANSPDGzUZbDDuBQD+Wh Yp1DPuuapOk0eBvd1dE5O1zoBwyM5xvIQTserlY0buVkCErHOi5Qed8HmpRRPFe9ktOy FB7LOJmQ+2BAmiv4C2ktrEZ2eUqteQcG9Ugu8OBZ6IH6bFIdOjXLCoZM8oDaCxKYf0bZ 0hXLMenwq8XpV0Z6lgKtI3wkgj8nKTdD8qgqkg1Gnfwj8HeH5XA3/WvGrAIBXo9Sil0i +Y9WNlnB4SBC9g1OJvgHnc/qT7yufkr8d67BdfJ/o15lCD0IXlkz1aAha4ybBsoY00YC SJ8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687803626; x=1690395626; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:reply-to:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=0/miHGwTxT7US89Pp4p1SvRY38MOXEBbZOtBg20Cazc=; b=cRJktSQTUVeUrnsQgAWQY+i6WQ0Vw0inKXPJdY3unwrHrospHiXM7Y2udqgAg3CzBJ YLDyNM/JRiaWA4deAdRqsaNYqMatcONYTUvPQn8zVRWaXRMuMN98aKQrMc4Huncfc0LB lQGZKoUKP5enaFVae3EEII+45m61RlqzXIUE54+AjkIukd5GwAW5LclQtOfk6ougG2SU hwy1M3piNb4FHIxK+rVpC78mY+dN/HShQYuGGoomsS3ohYXGZIqAd5sAOl2aiHRS+IZJ t131k9SF/XVr49Kz035+DaaQu7i3he27ojd4+0o9sp8LbC40FyasKCIX2vBEW1AHYA5F EbEA== X-Gm-Message-State: AC+VfDyXLGxIjN6Jxp9cTz+kWhZ2p9cqL02kvkXm/iUDIbGAMjNPAEV9 4LEikSdE8Qhz7XZYEYlxMHd27etp6J77 X-Received: from mizhang-super.c.googlers.com ([35.247.89.60]) (user=mizhang job=sendgmr) by 2002:a17:90b:797:b0:262:fb5d:1483 with SMTP id l23-20020a17090b079700b00262fb5d1483mr434837pjz.6.1687803625969; Mon, 26 Jun 2023 11:20:25 -0700 (PDT) Reply-To: Mingwei Zhang Date: Mon, 26 Jun 2023 18:20:13 +0000 In-Reply-To: <20230626182016.4127366-1-mizhang@google.com> Mime-Version: 1.0 References: <20230626182016.4127366-1-mizhang@google.com> X-Mailer: git-send-email 2.41.0.162.gfafddb0af9-goog Message-ID: <20230626182016.4127366-4-mizhang@google.com> Subject: [PATCH v2 3/6] KVM: Documentation: Add the missing description for ptep in kvm_mmu_page From: Mingwei Zhang To: Sean Christopherson , Paolo Bonzini Cc: kvm@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Mingwei Zhang , Kai Huang , Jim Mattson , David Matlack , Ben Gardon , Xu Yilun , Zhi Wang Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-9.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL autolearn=unavailable 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 Add the missing description for ptep in kvm_mmu_page description. ptep is used when TDP MMU is enabled and it shares the storage with parent_ptes. Update the doc to help readers to get up-to-date info. Signed-off-by: Mingwei Zhang --- Documentation/virt/kvm/x86/mmu.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Documentation/virt/kvm/x86/mmu.rst b/Documentation/virt/kvm/x86/mmu.rst index 4c9044b4dc6c..5cd6cd5e8926 100644 --- a/Documentation/virt/kvm/x86/mmu.rst +++ b/Documentation/virt/kvm/x86/mmu.rst @@ -237,6 +237,11 @@ Shadow pages contain the following information: parent_ptes points at this single spte, otherwise, there exists multiple sptes pointing at this page and (parent_ptes & ~0x1) points at a data structure with a list of parent sptes. + ptep: + The reverse mapping for the pte pointing at this page's spt. This field is + used in replace of parent_ptes when TDP MMU is used. In TDP MMU, each + non-root shadow page will have one parent, while each root shadow page has + no parent. Note that this field is a union with parent_ptes. unsync: If true, then the translations in this page may not match the guest's translation. This is equivalent to the state of the tlb when a pte is -- 2.41.0.162.gfafddb0af9-goog