From patchwork Tue Aug 1 00:21:26 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mingwei Zhang X-Patchwork-Id: 128935 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:918b:0:b0:3e4:2afc:c1 with SMTP id s11csp2362418vqg; Mon, 31 Jul 2023 18:01:27 -0700 (PDT) X-Google-Smtp-Source: APBJJlFKMOFyzDmIGihc/M78pNBAB/xQToREzJzJ7ovFlSQWo7fj0PaubgZjfOSS9Tbz+QjMxZB4 X-Received: by 2002:a17:906:3191:b0:965:fb87:4215 with SMTP id 17-20020a170906319100b00965fb874215mr1060785ejy.15.1690851686780; Mon, 31 Jul 2023 18:01:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690851686; cv=none; d=google.com; s=arc-20160816; b=V5/ttFXLFHEE208QkvVS0aUD57cU4P5/PbdI7x6qcdejlbvoOpEBrjjXJk8NjzRsNm uoAvFwCJWIYdPbbpY0HJj/LuJU1/GPbSKMgS6hDHaOLPjLz6JTpMm8F1insUU2ikMNw8 Ip1hBLJ4ThaI8x+249PLF1HdQroVmhXddqYvjWOU5oDPUd9TdePqBDbAoD44lfCohHML arLJJnhgt8pOCHtY0DVgQ98HYwVi3TMxsrIZWeszxVfh/HWTwglQD5p0Rmpi8oPHGAxB GfA86/TZNKae7UE/KjMXVfmBmPdvTxmbMXNg3ZDp7lFabn93ItkeCfGDTaWEys3gh01T qUaQ== 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=IZ3RpcngQEoYF628RWUm7FlAucMXyfC7tt8DVxrqfpY=; fh=gya5F2cZq9WTAdFit1IlKDHE8FQoHEyxSPkqDAO7wTs=; b=F5pDJHPQmHjymukMshf2pGQk9ItTWTxU0QaOuBq2UdPggTxM/AMIvOhhAbO4jad9z8 KRiD16outhTXi+YlDysZwnOyxutHBYsUNmFKYYl0+NiYGzYAzyn2ifEJF8Ano5VRvFW3 D+5gWkxg9hB7HYYExEsM+9KK6bCumlKIBNYuxOTaKRNkn2j4sYWHvUG9xeDD8F3j7gAC 6pKofo9E51pTavmoaKX7M53+I2m5fdATTUWcpzDF0IZu9Gkb7m7uetKJl6XZWi51fa8p Sn5ZtDYr2uy2Ir7LIDVZcZMNRyNzt+XZrQwDxzeDmXDiZN57tXy8vV4HJa7p3MRH93WD OnCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=57IFX5W4; 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 ck8-20020a170906c44800b009888e599645si7956981ejb.771.2023.07.31.18.01.02; Mon, 31 Jul 2023 18:01:26 -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=57IFX5W4; 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 S231309AbjHAAV7 (ORCPT + 99 others); Mon, 31 Jul 2023 20:21:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36728 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231526AbjHAAVn (ORCPT ); Mon, 31 Jul 2023 20:21:43 -0400 Received: from mail-yb1-xb4a.google.com (mail-yb1-xb4a.google.com [IPv6:2607:f8b0:4864:20::b4a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2E18E1BE7 for ; Mon, 31 Jul 2023 17:21:41 -0700 (PDT) Received: by mail-yb1-xb4a.google.com with SMTP id 3f1490d57ef6-d1ebc896bd7so6005359276.2 for ; Mon, 31 Jul 2023 17:21:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1690849300; x=1691454100; 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=IZ3RpcngQEoYF628RWUm7FlAucMXyfC7tt8DVxrqfpY=; b=57IFX5W4Q+tAl7op44Oy2FM4bWgLYmdYlV0ogtgE5VG/ceIH+YmCPWbyTsDo7fM9HN Lnws4wIpSYfJP0UKGkymy0Y9qXgPTHZMA1sxCxyWUSD9ih6zw8bvFEzlCftl0K6cQTss +cPMLOtCZiICXqKSWGuNnDiPpNVODe1ajPspNsrTYIclyEnCffPmoeUMnORWiwoduSCr zQS61STgZlvgz8Yu1+FnDARWgqHun0qtMl3aGJbVHKvXfCsV3YJQ7Ij8D9Nt6LV81ioT 7+p+yXyQJEPBAvWCncTEjzJ/A8lxjPAogZ7LriiCKW6wLSbz0zZujQ/ZJU30KoiZfXYq lz+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690849300; x=1691454100; 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=IZ3RpcngQEoYF628RWUm7FlAucMXyfC7tt8DVxrqfpY=; b=K4Vf+dYekBS39E58OKpIVd5kZ7YCo8srWYkLNrk+vb9io4Tx7lR2aYfRjVFBdo0gYj qSu3ZarGUgfs1cO0mQxq964p2WbRDQ4UN28xQZBwW9tcrl/kw54fjFVd/aqvNq0sIDh2 z1n+Y0+iY0gVVpKymjb05CAsa5Q/QUxMUiQqCBFJTgD4wtS7tgOqO4vjq5yhLkmAcyt0 0NEMTMY7LZoKqHyQUJwwTTBpi/JZ+0tXzLbzCI6rZH610yUpJXeBjCCwW2f1GpcM4T1h bwX7rNJtHeyur6btPq/2MF6DX11UPqkfIhkpnJtaTQuazxJ8A17T7RgFGFZpvO15medK O4RA== X-Gm-Message-State: ABy/qLah/LDcnwTn/BczWRRcc6iFuofrF0FKwEBRiY5NkZdXIXZz4jm2 HChJLdoLPOhZvJ0za3jLkwvnZfn3/Qjr X-Received: from mizhang-super.c.googlers.com ([35.247.89.60]) (user=mizhang job=sendgmr) by 2002:a25:dbcc:0:b0:c4d:9831:9712 with SMTP id g195-20020a25dbcc000000b00c4d98319712mr65659ybf.0.1690849300437; Mon, 31 Jul 2023 17:21:40 -0700 (PDT) Reply-To: Mingwei Zhang Date: Tue, 1 Aug 2023 00:21:26 +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-7-mizhang@google.com> Subject: [PATCH v3 6/6] KVM: Documentation: Add the missing description for tdp_mmu_page into 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=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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772986497949068108 X-GMAIL-MSGID: 1772986497949068108 Add the description for tdp_mmu_page into kvm_mmu_page description. tdp_mmu_page is a field to differentiate shadow pages from TDP MMU and non-TDP MMU. Signed-off-by: Mingwei Zhang Reviewed-by: Kai Huang --- Documentation/virt/kvm/x86/mmu.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Documentation/virt/kvm/x86/mmu.rst b/Documentation/virt/kvm/x86/mmu.rst index 581e53fa00a2..3be646a6daf5 100644 --- a/Documentation/virt/kvm/x86/mmu.rst +++ b/Documentation/virt/kvm/x86/mmu.rst @@ -283,6 +283,10 @@ Shadow pages contain the following information: since the last time the page table was actually used; if emulation is triggered too frequently on this page, KVM will unmap the page to avoid emulation in the future. + tdp_mmu_page: + Is 1 if the shadow page is a TDP MMU page. This variable is used to + bifurcate the control flows for KVM when walking any data structure that may + contain pages from both TDP MMU and shadow MMU. Reverse map ===========