Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2435167rwb; Thu, 17 Nov 2022 10:40:27 -0800 (PST) X-Google-Smtp-Source: AA0mqf5ciipRlQDn/k8vqiB/wPfE9VSYYgcABbZfklGd3wJ8PfpPvi3sfySKb0b7cgbzIkieEE30 X-Received: by 2002:aa7:ccd3:0:b0:468:f345:aa4a with SMTP id y19-20020aa7ccd3000000b00468f345aa4amr2271214edt.412.1668710427296; Thu, 17 Nov 2022 10:40:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668710427; cv=none; d=google.com; s=arc-20160816; b=mZ//GuE1TOTTjHaSpeFnpFjFEle1z3iXTA/TUDGaIRrceLPErZPapHMernEoXljbHd lN7WemSHh4vKCM7vSQgMbi5A2z5MYMpPkg711gwKC9Nwme0q+cq6UzbmcyNm33bymQYm q6ky++F280mjWEy990BM2TAsoxBcmU3+SFooektloittYXZT8q3XLkk4RjlAZaZV6dtg kQCUjiSdvfjy3rQvogcMKBy66drRo3uzOAMBWb0oQEXQqk9XMAhJcZXSZWz0t99ED6/a Tz1d9J5oROIBQCzJP1KUHfYwB5LBKYArAYGAvOBegFEpnxCTDzBhmmn+fW4yPA+VEli3 Zh0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=0bNNhIjjo42ZghHEKpZWRcH3jdudHDP1Mg2unknxtog=; b=O/BK42kkqhF+kLGaN4M/dYB66++8BpkLjKXM20WcLNIi8agILiLrT1/rjNPKYIt82S L4H1w86x+pY4pHtlkHXPMWHPddmYffOdcEkK+8KK2BXXhqDbX8woqOflH/2yb9WUgagN hlqUusj/j9y9CR9pc/ozkF+B9QnpZGFTd59dBygGJftSKbixuw8ImYzeB8uk7g3Fp88M ek3FP6WXCfCxq+Lt11zu0fO579Nvw7t2Tj71aHPBdICIaIqCn83EUjhBXoMIUXehcIou h6wz4/5EIOEK8RkKHZCdyzzNA7A/IASwMC+NXQEErpfHza0/rZY4kCrxcsT9XVFrNLDv fikw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=WNiqHWUz; 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 b14-20020a056402138e00b0046790cd90acsi1283102edv.95.2022.11.17.10.40.02; Thu, 17 Nov 2022 10:40:27 -0800 (PST) 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=WNiqHWUz; 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 S240490AbiKQShy (ORCPT + 92 others); Thu, 17 Nov 2022 13:37:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40330 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234811AbiKQShw (ORCPT ); Thu, 17 Nov 2022 13:37:52 -0500 Received: from mail-pg1-x533.google.com (mail-pg1-x533.google.com [IPv6:2607:f8b0:4864:20::533]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CE9C585175; Thu, 17 Nov 2022 10:37:51 -0800 (PST) Received: by mail-pg1-x533.google.com with SMTP id q71so2742940pgq.8; Thu, 17 Nov 2022 10:37:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=0bNNhIjjo42ZghHEKpZWRcH3jdudHDP1Mg2unknxtog=; b=WNiqHWUzPIdSPyCtDtG2/h/7AoNmrGE1k4BsgxTFMUVfsQHVus4i5ReuZ5b0h8FuSI 2LuNpfn/p+ixSTb0FK7OwgPITuHGEd5FQ7+g7HYVN52t1Vnon4pIKFBUq1y9A8mr4MHz 6WQwhSBeFcUuUbULAHZaq6coRpX7LnaB+y9k4vXgKOJmljsLkxWx6LWCEC+x/xzElOmD LOKT5FBlzSwiWmAdQgnPQUlnAR86oO9Hi58waJ6BL3DCnoLTieI/g5dWligh4wCXPuMS mTMobhwGhtJbFafM/xXjBvgfdnwSQKMKpoxyCDIZKrxxvPeMuP3D6TghqpIVyb3meDc+ pLww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=0bNNhIjjo42ZghHEKpZWRcH3jdudHDP1Mg2unknxtog=; b=F056Kisesx1MKDySC3/6vpx7aln5KYoQLXG4uK2tdnZgdLQG3XPhz4S08mo31kowm5 EVYlDfdeRv6Mewau8wMffRF473NndNEsR3mIUPu+RUiomycL7W8Dm1ZFaNjNSkKFgXJ7 bXEqeCF4XOfQZLx9ORY3Ij7xhQqF2byKBi3sLv0Ytw1zgbcLAXJCnscq7jthp91JwYLH wM8yorzXhC1zpmxGbcCIWKzJ5QxvU8vnTEFSNkHXYu5RlycyYZbn65WoAKwFNQmF42cn PEbA2AVjfJGUqhHk4bzGagktzRPScMMxBGG0EDAkiwWrw9lPucg3rRaT2hoarBdvfILb DysA== X-Gm-Message-State: ANoB5pktHJwhG1g+sldT1yAJBFzacqBaS3accECXKTbhFu9Iy2z8Gg58 JdeWoHZnrTWgIhWWH0/hepg= X-Received: by 2002:a63:1e49:0:b0:46b:1590:2625 with SMTP id p9-20020a631e49000000b0046b15902625mr3057403pgm.569.1668710271326; Thu, 17 Nov 2022 10:37:51 -0800 (PST) Received: from localhost ([192.55.54.55]) by smtp.gmail.com with ESMTPSA id j8-20020a170902da8800b00176ba091cd3sm1736307plx.196.2022.11.17.10.37.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Nov 2022 10:37:50 -0800 (PST) Date: Thu, 17 Nov 2022 10:37:49 -0800 From: Isaku Yamahata To: "Huang, Kai" Cc: "kvm@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "Yamahata, Isaku" , "pbonzini@redhat.com" , "Shahar, Sagi" , "Aktas, Erdem" , "isaku.yamahata@gmail.com" , "dmatlack@google.com" , "Christopherson,, Sean" Subject: Re: [PATCH v10 041/108] KVM: x86/tdp_mmu: refactor kvm_tdp_mmu_map() Message-ID: <20221117183749.GK2350331@ls.amr.corp.intel.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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 On Wed, Nov 16, 2022 at 09:42:34AM +0000, "Huang, Kai" wrote: > On Sat, 2022-10-29 at 23:22 -0700, isaku.yamahata@intel.com wrote: > > From: Isaku Yamahata > > > > Factor out non-leaf SPTE population logic from kvm_tdp_mmu_map(). MapGPA > > hypercall needs to populate non-leaf SPTE to record which GPA, private or > > shared, is allowed in the leaf EPT entry. > > Is this patch still valid/needed since you have changed to use XArray to store > whether GFN is private or shared? Because tdp_mmu_populate_nonleaf() won't be touched any more, this patch doesn't have any benefit. Will drop it. -- Isaku Yamahata