From patchwork Tue Aug 1 00:21:23 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mingwei Zhang X-Patchwork-Id: 128950 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:918b:0:b0:3e4:2afc:c1 with SMTP id s11csp2386159vqg; Mon, 31 Jul 2023 19:07:58 -0700 (PDT) X-Google-Smtp-Source: APBJJlE8fRWnBaqcsmJPV5CjeBfm3rJz7Q0bet/ps16riOIJh4KqIpOWAXANzuUKGUTBczxmXT4A X-Received: by 2002:a05:6a21:4849:b0:117:a2f3:3c93 with SMTP id au9-20020a056a21484900b00117a2f33c93mr10223568pzc.2.1690855678337; Mon, 31 Jul 2023 19:07:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690855678; cv=none; d=google.com; s=arc-20160816; b=KIG9NOqmvx2Kw9kuNZ62yHvnfDh5Mm5C+yF1LD1gSHH8Sp0W/Wor8LiyLjtRGRkyaJ BgiV84KW3vviJr4ejIA+IVeZt0+2T3tTotnPZx4Y6glvABbhOE2fR3liORQVw9qIS0nP iEXQ447K046124Q1ibYUTry2LTRQiDrOPF+ULOBFowTnRJqqasa21vYcrWVa/cvR8TP5 Bn0jySSWpCjd5GDt5Aslv5Tb+Vhf2zwa1JwhiwYHfWahxUtmCw5sEFquWxfuByGDbR95 GvaO0lHsvWlf7DvBvXSWt5vf1boMUR/UnBOX4GdEHuKGc9CS5cpkAMKq9sfftx780SoF qBQA== 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=X6gKOGhlGB8pLW0DYtQuv9ffBJaXjDy6pmjMuBOFYgg=; fh=gya5F2cZq9WTAdFit1IlKDHE8FQoHEyxSPkqDAO7wTs=; b=lf+Wz4jmhZP4djToVRyl4tktFa82vuBmtRUk6e78CghFj4oGSBZNNuwY6q6tXQIx/I 46iUym/0pyeqHDJHPtjshrZNgrndN44urxtBaE13uQjfps/4x7KCcmv7zAPJNILmm0uY U1ooXWAvUQIpHpvXifjRn1ormTURKHCBiCltn3IngT3xnEbQPFETDAnfXNksI4eOHo3A ZuekaygoxOGo8kNfMGebdpPf8IC+bACPLlxAnYPfPuf2EigdWSPJx3TFKGXkG7S68UkU 2c6ArEirE7oVLIeogjGCaVTkdZkAMuCzyGlAr2YyGf6bpn1GctwT1KU0liDGB4GEfPd8 ANww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=kQoqrjZU; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id eg25-20020a056a00801900b00682babd7453si1209964pfb.142.2023.07.31.19.07.45; Mon, 31 Jul 2023 19:07:58 -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=kQoqrjZU; 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 S231300AbjHAAVn (ORCPT + 99 others); Mon, 31 Jul 2023 20:21:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36684 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231268AbjHAAVh (ORCPT ); Mon, 31 Jul 2023 20:21:37 -0400 Received: from mail-yb1-xb49.google.com (mail-yb1-xb49.google.com [IPv6:2607:f8b0:4864:20::b49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C5F2019A8 for ; Mon, 31 Jul 2023 17:21:35 -0700 (PDT) Received: by mail-yb1-xb49.google.com with SMTP id 3f1490d57ef6-d10792c7582so3920953276.3 for ; Mon, 31 Jul 2023 17:21:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1690849295; x=1691454095; 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=X6gKOGhlGB8pLW0DYtQuv9ffBJaXjDy6pmjMuBOFYgg=; b=kQoqrjZUSpYSVWxRkD8CyHapEmqNssIKnU0p8DbOeOtORHqvQa2sRcXhVsWCzU4YXH zZKas3OblcCNpHead2nGTkpMYThMQMfZeHh41WgRE1hPLNiwbHntVRxHiv/NqnNsu6We KNZIuYEWFnyjDmvXcOy5RwHVYQaGudAGf1nLCyRoZSHMxNSpdZrY7aU4AzRIfp1+8ha8 gqHlW5ZZCXCmF7ZW8oxl02SvyyCRoY3Egwy9Mv5L85kKyaSF/yQkV7Trl0FnFZ+9EL1R mMTvAT/jSm6uCb3HkZgyPqa4An9p+T65XcE0u04cE0v+XXg1hINDwPuIhtIjwA+Za4dr /fEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690849295; x=1691454095; 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=X6gKOGhlGB8pLW0DYtQuv9ffBJaXjDy6pmjMuBOFYgg=; b=DV+oUbttA73pLAvdRtQVby+5cydszGF0bEP6upY0D/z3POjUueTT+VvJtJnwWGzBTI G8h6Q0ERFCEBymGjDJMLGWBLSFVg8bTEzk7Vs10bGqt3SSu+xlpGo1D+fGCXU2uL5FB0 HKqbcAVTIptvg7l0+wXx3NJtYgwFKqO8NmXy5NGFe1HXXa0K81vY9Sb+BakVLZG7Z8KL 2HZRcV3ymFNvDUEh3UsZEo1ub96kay0ReeP+RXQ0nlrqlvZJ3KfwusyZWf8g0uFqbmmg qU0LhEMuYunUUjKO3ZpQAnl/ISxfzP9p67WBGxJ/eymfyLkdcZQpnmC6CzzCYziGkxCb iNRw== X-Gm-Message-State: ABy/qLYGD4RbbQU9DA1KAL/0+w1SHWsMEyO4ns9x/cW2gr2yKa8EhDx9 QfXSn+GxYeD6w+JHjSaFCY0r5E2qYbY4 X-Received: from mizhang-super.c.googlers.com ([35.247.89.60]) (user=mizhang job=sendgmr) by 2002:a05:6902:11ca:b0:d09:b19:fe2c with SMTP id n10-20020a05690211ca00b00d090b19fe2cmr70907ybu.12.1690849294946; Mon, 31 Jul 2023 17:21:34 -0700 (PDT) Reply-To: Mingwei Zhang Date: Tue, 1 Aug 2023 00:21:23 +0000 In-Reply-To: <20230801002127.534020-1-mizhang@google.com> Mime-Version: 1.0 References: <20230801002127.534020-1-mizhang@google.com> X-Mailer: git-send-email 2.41.0.585.gd2178a4bd4-goog Message-ID: <20230801002127.534020-4-mizhang@google.com> Subject: [PATCH v3 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 , Randy Dunlap 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=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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772990683522863146 X-GMAIL-MSGID: 1772990683522863146 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 Reviewed-by: Kai Huang --- Documentation/virt/kvm/x86/mmu.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/virt/kvm/x86/mmu.rst b/Documentation/virt/kvm/x86/mmu.rst index 35e642303962..17d90974204e 100644 --- a/Documentation/virt/kvm/x86/mmu.rst +++ b/Documentation/virt/kvm/x86/mmu.rst @@ -239,6 +239,9 @@ 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 kernel virtual address of the SPTE that points at this shadow page. + Used exclusively by the TDP MMU, 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