Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp395134pxb; Thu, 31 Mar 2022 07:52:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzPljn4JCwsAktE9VK1/hus2Y+IDVp7YcPiWEXuW26LmggHd8jQ74ALm7ge84oUU2bhytE7 X-Received: by 2002:a17:90a:4604:b0:1bc:8bdd:4a63 with SMTP id w4-20020a17090a460400b001bc8bdd4a63mr6549554pjg.147.1648738356196; Thu, 31 Mar 2022 07:52:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648738356; cv=none; d=google.com; s=arc-20160816; b=l46XBTfC1v1ePyV4cGQ3dXk1sdlyzf2q3uCHhCelZyRMgtgriJggxkyp82E6tg/1oc 76vTDrZUiYLwvc9rzIB3J+3Ra4Bf5IPd9QaqPDvtgL3tgQagwqoUGvK+kfAs9rGY2zL5 Sk2+FMkwD/Xxv49fGMJZ0/KQKOI21gqQ2Iryb9WaWpPB06vxOiVoAHZF0MJr2xnUfKUK W0C/Jsko8wXXLtcDAGijZ/ef78HYYEyBAAVseMG1MhT4SzK6w6ihnKvkOl6/TtJYSXwV Pndt+wkDzJd3viNIDv1vNuiEe3cvk0lFWm0agHeZNqZQEKZyvBVOGf9q5aMkhbvm02/e RhPQ== 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 :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id:dkim-signature; bh=4Ca0Iua2P/SM1ARsOtqDXIa525gg1+L6yIZHj31RbrM=; b=l6lXaJKq8FPKuHBX7XZrdNIVTeFQU+7qsIFQBkrvgt4q1F/Y9IDrnFkefepvJUBitk 1wuzuZzd9FJhPnTeP5xBPB4LXDKOeT55tFOTyGQ8yA7q1J2gONBwddQUoZcAzSJYmc+y NLxrL1fN0/B4mfhfp3Be8FK/UXLQ0BFlgrgQffwrBwqjVxOVXNkpZK9C3MMtcMa2ozHn C+wzMcMsqzVe2UIwx+rsJ+uTWMD7Nyg7RV2bKcgnv7+ESHqGqV+RL09srUc30DQFdJB3 pWpl2gQbSDFFXXRnIWphuh/lisKx2xzzdSWjjWcvO9dwHHE4Y8EYseQx98YdKKlrklqg eUiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=SgSmocZc; 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=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z8-20020a63d008000000b003816043f128si3656794pgf.797.2022.03.31.07.52.22; Thu, 31 Mar 2022 07:52:36 -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=@intel.com header.s=Intel header.b=SgSmocZc; 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=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235079AbiCaLZa (ORCPT + 99 others); Thu, 31 Mar 2022 07:25:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44308 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235076AbiCaLZ2 (ORCPT ); Thu, 31 Mar 2022 07:25:28 -0400 Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9AF1260F6; Thu, 31 Mar 2022 04:23:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1648725821; x=1680261821; h=message-id:subject:from:to:cc:date:in-reply-to: references:mime-version:content-transfer-encoding; bh=mS6zbhaYlg/QLdlCSwj4lOoyZGKeWBXdfcvpQAxVnVw=; b=SgSmocZcMQZ6rCeu1GpDRINs1YjGaNQyRCMtA8Lbq7Y3Nx9aTnADQEIh WQRCLzb93DrdKloWWEedDQ3C/AVgEqo9GPrchZC0TuLi0zLFMewJBmg/G 5PWmRIM6Md1WlMbOuG1W65kwaAu1yyIuxODQOhmtInjdhDczZmIUPEd/+ t9RiNfD8D9dP13kCLzTgPuFPi5ZJheTqHTrKe532G/BbEMkoSeaFtQ2Ow JwGkdLDtKcRa5mXnM7761lf3WaJ420uw7xzk8faz6jiATQSz7sNWQJ8sE l+ASlT0Vk7hN98X4EaXDS+oZ1B5axTiZoi8bx5G6uPubM03y5c0gVWsKx g==; X-IronPort-AV: E=McAfee;i="6200,9189,10302"; a="258632162" X-IronPort-AV: E=Sophos;i="5.90,225,1643702400"; d="scan'208";a="258632162" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Mar 2022 04:23:32 -0700 X-IronPort-AV: E=Sophos;i="5.90,225,1643702400"; d="scan'208";a="640096005" Received: from fpaolini-mobl2.ger.corp.intel.com (HELO khuang2-desk.gar.corp.intel.com) ([10.254.53.114]) by fmsmga003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Mar 2022 04:23:30 -0700 Message-ID: <55fa888b31bae80bf72cbdbdf6f27401ea4ccc5c.camel@intel.com> Subject: Re: [RFC PATCH v5 032/104] KVM: x86/mmu: introduce config for PRIVATE KVM MMU From: Kai Huang To: isaku.yamahata@intel.com, kvm@vger.kernel.org, linux-kernel@vger.kernel.org Cc: isaku.yamahata@gmail.com, Paolo Bonzini , Jim Mattson , erdemaktas@google.com, Connor Kuehl , Sean Christopherson Date: Fri, 01 Apr 2022 00:23:28 +1300 In-Reply-To: <770235e7fed04229b81c334e2477374374cea901.1646422845.git.isaku.yamahata@intel.com> References: <770235e7fed04229b81c334e2477374374cea901.1646422845.git.isaku.yamahata@intel.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.42.4 (3.42.4-1.fc35) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE 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 Fri, 2022-03-04 at 11:48 -0800, isaku.yamahata@intel.com wrote: > From: Isaku Yamahata > > To Keep the case of non TDX intact, introduce a new config option for > private KVM MMU support. At the moment, this is synonym for > CONFIG_INTEL_TDX_HOST && CONFIG_KVM_INTEL. The new flag make it clear > that the config is only for x86 KVM MMU. > > Signed-off-by: Isaku Yamahata > --- > arch/x86/kvm/Kconfig | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/arch/x86/kvm/Kconfig b/arch/x86/kvm/Kconfig > index 2b1548da00eb..2db590845927 100644 > --- a/arch/x86/kvm/Kconfig > +++ b/arch/x86/kvm/Kconfig > @@ -136,4 +136,8 @@ config KVM_MMU_AUDIT > config KVM_EXTERNAL_WRITE_TRACKING > bool > > +config KVM_MMU_PRIVATE > + def_bool y > + depends on INTEL_TDX_HOST && KVM_INTEL > + > endif # VIRTUALIZATION I am really not sure why need this. Roughly looking at MMU related patches this new config option is hardly used. You have many code changes related to handling private/shared but they are not under this config option. -- Thanks, -Kai