Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp3638238rdb; Wed, 13 Sep 2023 19:53:54 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHTRTBLof3D0ZjlET2fx5q68t091+we7SaqTaeI10KDFVgSZwFzmB2QPC2zmVhIvwIYDlO0 X-Received: by 2002:a05:6870:b014:b0:1d5:bda7:132d with SMTP id y20-20020a056870b01400b001d5bda7132dmr5098240oae.4.1694660034192; Wed, 13 Sep 2023 19:53:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694660034; cv=none; d=google.com; s=arc-20160816; b=fpLsgGmxLx+HIgtWjzBjCwm9tyhELh2Xww62ajyxaW4nYlypLlUOIB2gED+vltgQfJ SziQU/4vk36Jy5qfQUDYsMguojzze9soYogx1kFEMUeftN8oU4hDXHjXxIlWsPfnHEQh zk5+QvydpqzjB/6lJVttv8DzbkmGw0Q2GTUFMVOHXNEmQgXt+7N/FjKHsvz248LbltdW NFYxNKengChRgZvgBwqZXSleZEBIeIiAR2wI+mQ0PAgusREJHxN6dKhxbRAa2/CrbjcH 5eyt0RIEwBajMWdEIy1++FRaxak1TZKcXRlkvJeyaDim/4tU9wsdVwMTCNoIe3qpedDf THWQ== 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=mMn9wfgwSNeBQXqC1xBrAj9DL3zD7p3ffh9VRzzCD10=; fh=oepeMie6ME0MwNRfBVLnM5ecOy8V5MJ/o7dp7J50CP0=; b=GbDX1jPsum5V9/dXFcREJdw6nlKTn+T5Z0CLyKfq3JRQJLx5V8EVRc5oMws2KSHtLh 8ZCFVAxpNh5FaOXP8hLNCSRdP05Qli1f991hXR+83RKPHWrnT9TNwujF9EinDKcMAStO HYsGTACDJdopVK2C0YrQ1JaHEZRgX6I9pw/+zIjHFUdGGlm29pk3k4I9QdElpKXU7KG3 bW+sJ1NWH0Qxy40IjWg7vPNl4cb4OcJAl+PS8KgcJ1wf4k+MHGbIl585mz2Qc8dhoSko qFlNMk8an0OkboWj6xqWi8pbHfQvnHxZxus8xR3GSDXcLjJfLx3lBjh/EwYCSi3aUFYN h3ZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=S3Rp41f5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id k3-20020a6568c3000000b00565f294417bsi562146pgt.426.2023.09.13.19.53.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Sep 2023 19:53:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=S3Rp41f5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 44A96808E65E; Tue, 12 Sep 2023 11:46:19 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237524AbjILSqJ (ORCPT + 99 others); Tue, 12 Sep 2023 14:46:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52838 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237489AbjILSqG (ORCPT ); Tue, 12 Sep 2023 14:46:06 -0400 Received: from mail-pj1-x104a.google.com (mail-pj1-x104a.google.com [IPv6:2607:f8b0:4864:20::104a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3FE2A10EF for ; Tue, 12 Sep 2023 11:46:02 -0700 (PDT) Received: by mail-pj1-x104a.google.com with SMTP id 98e67ed59e1d1-26f49625bffso7076580a91.1 for ; Tue, 12 Sep 2023 11:46:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1694544362; x=1695149162; darn=vger.kernel.org; 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=mMn9wfgwSNeBQXqC1xBrAj9DL3zD7p3ffh9VRzzCD10=; b=S3Rp41f5pj9Xq0M0JICGfaFghn6ICKnxgTM9yCGAeXmGyJlC44I732tpv1fT+chYcQ ZDtTodqENBFq1gDBu65cXYQvK9sjFeu+gm/exz1DJ3Rvpqhcz6hbBkrI0hSn9j/4eUE8 CJq9qtA0y6x3jnfuta+LmY5WQeTrbxalxrFavt4DsyRKKQ2rFTrvZEwyDp9sNlCNp6oV daau+6OQLLmTIq3dNVmRIohVO9tVZkThMw3Gyh3VrtML9u+e05ppukjKjI7ElQlo4Y8F TtQzpcBTL7Hm4Kv0g9CJJLm2SlwkKZHsFMrwu6T383d+kYoZwAK8ZhngosHyqRYq6Xsd FPXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694544362; x=1695149162; 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=mMn9wfgwSNeBQXqC1xBrAj9DL3zD7p3ffh9VRzzCD10=; b=ngTTMOhPSxrPZXUF70BzX2Hd8oJYWe0dNfMovuodeqPqsa9osNEqpM3/RkFog0Kmnp uDX8sqUH2wN71niyViFYJvYIcbukvXo+v0OoWJgJsPMGYJSSlvIXBWXXodNOkF2zvp/x ZRM5DMDLa9jTq0esiBDoZvIqzL6V3FrNdpjjDjtJ0bLD4X6Mp5zW1sfdmSNTlcaTLyCm 4Y61v027uk0ZdKSHwgNih4H37grxTtrsqTovpL/4cSuIKaQuk6BsH9J0eKmx3bRV99OV 8YjBPcleyca56UA/NTqRWUxuUpjQssZVssiQ7GnXVAZZrUQbr0KFztbq1WKh0/KcvCrv ghQQ== X-Gm-Message-State: AOJu0Yx6IjKuaCITMoPx9BmvX6KHxomH/0u8SzCXf1zNjNX+qmsxzeKm ysudZFnFu/4cV93YbSgQq3IjbHZxSihF X-Received: from mizhang-super.c.googlers.com ([35.247.89.60]) (user=mizhang job=sendgmr) by 2002:a17:90b:110a:b0:268:2de3:e6b2 with SMTP id gi10-20020a17090b110a00b002682de3e6b2mr2664pjb.5.1694544361761; Tue, 12 Sep 2023 11:46:01 -0700 (PDT) Reply-To: Mingwei Zhang Date: Tue, 12 Sep 2023 18:45:50 +0000 In-Reply-To: <20230912184553.1887764-1-mizhang@google.com> Mime-Version: 1.0 References: <20230912184553.1887764-1-mizhang@google.com> X-Mailer: git-send-email 2.42.0.283.g2d96d420d3-goog Message-ID: <20230912184553.1887764-4-mizhang@google.com> Subject: [PATCH v4 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 Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Tue, 12 Sep 2023 11:46:19 -0700 (PDT) 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 f659f282357d..22d221c180d7 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 -- 2.42.0.283.g2d96d420d3-goog