Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp1176923imw; Fri, 8 Jul 2022 21:29:12 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vj18KXbbEmYvwSHOY2/w4hr25dC0ShMy4gULxr+yqIP+imrpUu9EVMbZauQu/jcC4pH0oR X-Received: by 2002:aa7:88d0:0:b0:525:43ab:f648 with SMTP id k16-20020aa788d0000000b0052543abf648mr7076821pff.81.1657340951988; Fri, 08 Jul 2022 21:29:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657340951; cv=none; d=google.com; s=arc-20160816; b=JkYH82Y7hpnh21yKtkP4Khp++Pq0PEuWebxUQnEwZTb3bee6mmF0NWdOVfwnsIVnmL UiFxeh4eiifgo1NnVmiNkQ0f6QPJPWe9Jb7GdivXygATuBP+zem9lZXyJDOdf4/sTQmC FU3LtnM4lvf/JTWtTUD0i1IYh6mdoEPsT4VrtBM69wzw5tj0TQ2W90PWROpMtAyJ1Rdn WOXGDsT6l2ASlX7GiluOGlJH8iZb7BuCWEP24L/72bIF015XXbhG9AYxgGzRrtCf/rq+ 4de03c0621Ihvszy1aQT8uIr0Nd6Kq2kLIazvA+Ps8HRDjaMp6pVHPLYiEb6Z7iG5cLN mYZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=uXohxGFGaSlqXK87Mr0YBkysDoOymE++YQPhkvmJrvQ=; b=fFvycJqrAJwsjooZxr2U6a5kkAmyY2afP1AJ9v0/hLeut9db2WPHST+ZqKSmS1Q8dj VUOj900TmR67KnREFc7Ukpa7ANrZ79PfaSINnlFIUOc9UejrUq1XJ7WF8nKb5qYsrFgk BbLqlAfTVBi0IDPbXdnQX5TBNI9VICghWxVuV7aEfh3KwRl57O3hIFx1QvihTckj8uya B1gf2XE7xT/KJnnHeEBwxHDa1n51BNUjDciHy4BKa/o/opuDEJEh885dNa46TSwXtkpV qhb4Wen52XufI03Vbph4bbauJImLP7zW87Tz/VdgydXtyKGGTYnUKxNjUglEqyrZwYz4 CPZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=HE8j8luJ; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 205-20020a6303d6000000b004127d6a496fsi771625pgd.222.2022.07.08.21.28.58; Fri, 08 Jul 2022 21:29:11 -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=@gmail.com header.s=20210112 header.b=HE8j8luJ; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229790AbiGIEWI (ORCPT + 99 others); Sat, 9 Jul 2022 00:22:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53380 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229632AbiGIEVY (ORCPT ); Sat, 9 Jul 2022 00:21:24 -0400 Received: from mail-pj1-x102a.google.com (mail-pj1-x102a.google.com [IPv6:2607:f8b0:4864:20::102a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C87A14E62D; Fri, 8 Jul 2022 21:21:22 -0700 (PDT) Received: by mail-pj1-x102a.google.com with SMTP id o3-20020a17090a744300b001ef8f7f3dddso387478pjk.3; Fri, 08 Jul 2022 21:21:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=uXohxGFGaSlqXK87Mr0YBkysDoOymE++YQPhkvmJrvQ=; b=HE8j8luJq5h1OVBEDnt2bDyyG7gQ2TMvxhS4BO3wfbCbmR8FkSpOcnyR0mY/yrOxRD IWaLMdksPZHL559pF7ATCp2BCzEJh32ZvazfJGvu0ZA+axdFXRjiTEbo6cnXIym0PO4L zL1mZoXem+M0MOzMHAn1jIsn7IkMA3mp36smXIpERaBOFNlsixXj7lRz243aQb665ruU xC5Omi6ECS/i186oFtOZ5VURfQHw9t8JMIlKeN9DFF2/k7tGKo9LSwwjUmHw0gB7ikFy PtXaDBSLpjT9EeCOUhGKn7PV4IV3dBh34xk48Ss65fPGXmwHc3Yi8INqPclj/CH+JBMs MUog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=uXohxGFGaSlqXK87Mr0YBkysDoOymE++YQPhkvmJrvQ=; b=25+OP/6SO3WHQQecfcY5l9FWeici74cp3G8valuKB9O/iqb1S4nlJRaDc6CxpHDxnB FShYkZD5bIQ2geSUsPGA7QLynlXDI+FQniSQnwOD3cv4zDjb/ikxodhIMDGxa0M14Gob WQBTd8bywjpj6fS/DLkI2f8iiHSi84Aky5LFMcLTBFaCOtp8Sj2ytVxYOjG0sLRaEyqC olDv8mCH2GLhMAqKhsoOk695S51MuTX3LzxFdLkm42L80UuQ0O7VnUUeTl/usE12yWie Ox/rVYG9o6zELEkCUWHfmb5glLpyAtqq+1cKzmd++wOBKhn5n4lD5AGDKgU/NEwxzEfI WLbA== X-Gm-Message-State: AJIora+upEKSBwkhJFt/SAayXZvRRCaQJEZyolrztxc6svYuIDwSSBGe SLQt7cR79IcRU3IQx2anf7dG3hzMOps= X-Received: by 2002:a17:90a:e7cd:b0:1f0:c82:c88f with SMTP id kb13-20020a17090ae7cd00b001f00c82c88fmr1181858pjb.100.1657340482346; Fri, 08 Jul 2022 21:21:22 -0700 (PDT) Received: from debian.me (subs02-180-214-232-88.three.co.id. [180.214.232.88]) by smtp.gmail.com with ESMTPSA id b10-20020a170902d88a00b0016a268563ecsm353896plz.23.2022.07.08.21.21.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Jul 2022 21:21:21 -0700 (PDT) Received: by debian.me (Postfix, from userid 1000) id EB5BD1039D6; Sat, 9 Jul 2022 11:21:11 +0700 (WIB) From: Bagas Sanjaya To: linux-doc@vger.kernel.org Cc: Paolo Bonzini , Jonathan Corbet , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "H. Peter Anvin" , Isaku Yamahata , Kai Huang , x86@kernel.org, kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Bagas Sanjaya Subject: [PATCH 09/12] Documentation: kvm: tdx-tdp-mmu: Add blank line padding to lists in concurrent sections Date: Sat, 9 Jul 2022 11:20:35 +0700 Message-Id: <20220709042037.21903-10-bagasdotme@gmail.com> X-Mailer: git-send-email 2.37.0 In-Reply-To: <20220709042037.21903-1-bagasdotme@gmail.com> References: <20220709042037.21903-1-bagasdotme@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_WEB,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no 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 The last warnings on tdx-tdp-mmu.rst are caused by missing blank line padding at lists on "concurrent" sections. Add the padding. Fixes: 7af4efe3263854 ("KVM: x86: design documentation on TDX support of x86 KVM TDP MMU") Signed-off-by: Bagas Sanjaya --- Documentation/virt/kvm/tdx-tdp-mmu.rst | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Documentation/virt/kvm/tdx-tdp-mmu.rst b/Documentation/virt/kvm/tdx-tdp-mmu.rst index c403e14fb223aa..f2170c154e18c3 100644 --- a/Documentation/virt/kvm/tdx-tdp-mmu.rst +++ b/Documentation/virt/kvm/tdx-tdp-mmu.rst @@ -418,8 +418,10 @@ Concurrent zapping 2. freeze the EPT entry (atomically set the value to REMOVED_SPTE) If other vcpu froze the entry, restart page fault. 3. TLB shootdown + * send IPI to remote vcpus * TLB flush (local and remote) + For each entry update, TLB shootdown is needed because of the concurrency. 4. atomically set the EPT entry to the final value @@ -429,6 +431,7 @@ Concurrent populating --------------------- In the case of populating the non-present EPT entry, atomically update the EPT entry. + 1. read lock 2. atomically update the EPT entry If other vcpu frozen the entry or updated the entry, restart page fault. @@ -436,6 +439,7 @@ entry. In the case of updating the present EPT entry (e.g. page migration), the operation is split into two. Zapping the entry and populating the entry. + 1. read lock 2. zap the EPT entry. follow the concurrent zapping case. 3. populate the non-present EPT entry. @@ -451,7 +455,6 @@ In this case, the TLB shootdown is batched into one. 3. TLB shootdown 4. write unlock - For Secure EPT, TDX SEAMCALLs are needed in addition to updating the mirrored EPT entry. @@ -462,9 +465,11 @@ Add a hook for TDX SEAMCALLs at the step of the TLB shootdown. 1. read lock 2. freeze the EPT entry(set the value to REMOVED_SPTE) 3. TLB shootdown via a hook + * TLB.MEM.RANGE.BLOCK() * TLB.MEM.TRACK() * send IPI to remote vcpus + 4. set the EPT entry to the final value 5. read unlock @@ -477,7 +482,9 @@ condition. A hook can be added. 1. read lock 2. freeze the EPT entry 3. hook + * TDH_MEM_SEPT_ADD() for non-leaf or TDH_MEM_PAGE_AUG() for leaf. + 4. set the EPT entry to the final value 5. read unlock -- An old man doll... just what I always wanted! - Clara