Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1208710pxb; Fri, 1 Apr 2022 07:26:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyHAL11BjRTXRISKpxvDgjaPiTh7szIz7+TZYj1ChyfNRJYJbnrt4nPxUb06wyTJmwL8I6H X-Received: by 2002:a63:7702:0:b0:382:24f1:b70f with SMTP id s2-20020a637702000000b0038224f1b70fmr15110474pgc.144.1648823169176; Fri, 01 Apr 2022 07:26:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648823169; cv=none; d=google.com; s=arc-20160816; b=XI+mClI4EYQl8v9chsjb2N710fNZ8i/JZyvnc1VfO2gTnj/MkkhZH8wC6hgazkhq2f aFBYfVdkInECts26oAZIMtnkB9q+j+XPu9idmheL9Op4JJCsbkPgQsRmkRA/O/UNaBDb 0u3AoxEqA6Bt3838con3NDDO3MFaTxLlAXIeNDmHzmVEtYM5E182c44xaNSijLN5taTn DELlx1y7B7JcsWrUg5ZyKQ8KnnmbIBpUWyeRHIn5bB/EugaA/w5zyOJX2m52zk2HTeOo d0E9H76K7nUxdqZgy1KH5E8apnPDAV6ry9xuIZk5dimjmobo6Jpb9Scc63Hz3R7VaDJs R0Zw== 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=ZYoSvb6p0GaeXDPQELvHBRkenVkA39eLEuirDVFeehA=; b=a6FNcMEMpWgk8n3nfYNav8wsfeHstcIEAL6FbbzCae4LSNQ/dtYI9gaAZRTbi2mA6H 6Kw0B0y91Syc24x9/vmQxRgAXGEPKdMkbAV2X0nsxmCyEXOQHFQXTHJJWzbx3C3pgaOG EBCsULyB7zreKjNAXCn1hhMqipgCDghC04rx/MTnGG8LQrZvOVlULvjA4u6DAxfmqCWx aTrJ7H2fbtpPcudw7qNHbgqZcbM2T3GN1CZN6jmE4bwZCOOUxUuyuqalxcsd13o5y0RY vTAEAIiEoPf/LEO1H99bmJ7OWTmmfQfSueRffRW8TOPEQLVjPC/64tbrZ/OnQK8yfeNe pBFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=odp7QeR+; 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 b4-20020a056a00114400b004fa3a8dff78si2638226pfm.47.2022.04.01.07.25.54; Fri, 01 Apr 2022 07:26:09 -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=odp7QeR+; 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 S243863AbiDABxX (ORCPT + 99 others); Thu, 31 Mar 2022 21:53:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40806 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229572AbiDABxU (ORCPT ); Thu, 31 Mar 2022 21:53:20 -0400 Received: from mail-pl1-x635.google.com (mail-pl1-x635.google.com [IPv6:2607:f8b0:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7C3A12571AF; Thu, 31 Mar 2022 18:51:32 -0700 (PDT) Received: by mail-pl1-x635.google.com with SMTP id x2so1195129plm.7; Thu, 31 Mar 2022 18:51:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=ZYoSvb6p0GaeXDPQELvHBRkenVkA39eLEuirDVFeehA=; b=odp7QeR+amh5tY1+VtPwLjejVfDCLPZE6pLOu/7hf9AM3c5k06MY6KIt6N4BYuVyuw Eob6IjyMnyd06ar4Y0wR/XLNAk9jhW4juQnJjRa1P1jxqrfaqkL2eCCKILPKgSZ4/NxM 2uyHIWcFHEpY/F1c8iIXv44HM3Y8j18LiIMnLALGOHY/gTew8+xneK6XsZTMFBBmptsb 9JcS7P9HPDDP9//e1ZstGs62JBjJU8Vl4Hn9apViVkyHXvE1To/H9CpwtbHzIpqzwK5y r9zOQ2AuX7xTHTJFDlLEEn9wv7LRdJnHPZPdv8nSt1oDnXp6Fi86+X6JZTvQ7nWq6MxD 04mw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=ZYoSvb6p0GaeXDPQELvHBRkenVkA39eLEuirDVFeehA=; b=f9cYbIxTBxhJV9e6DL70VM8LYdOwCVKQP5Jz8m9ZntFW+CyXVx63M4VvFuI09XUDUm 9IqKfSePL4Yi4+JBVQP5AfhSBt5EfKEia5gF2t+BuqB04Z4roBRS5ldyOo0IUh0C5B18 yI9RYd5BXvSwqZtUdc1ZRxRz4y5G3CUSLxY64y9DY96BtseG47Kl9804GFZkhzGyzmFC H2S2Iziec4sRPNgi8NQ8f0JnOyzDRH8xanhV33K8Jcr9+ZzsGHDD1aDASq+TKrx/llK7 /CeH4Hs5ze8dJcXZPG4rncL7DX7OzPLpLjdBIb+dgrn78s1rTzlVh3B+Z0Txmy7P6xE/ PSeQ== X-Gm-Message-State: AOAM533Er2Xc33gKv0Sf8eKqDpVw5KMz8yqH0JkDMgESLzASLmHHrHPc W0YkTMNdaiJFXbnqCj0WLjX1ggUZjSo= X-Received: by 2002:a17:90b:17c3:b0:1c6:b0ff:abf with SMTP id me3-20020a17090b17c300b001c6b0ff0abfmr9091598pjb.24.1648777891876; Thu, 31 Mar 2022 18:51:31 -0700 (PDT) Received: from localhost ([192.55.54.52]) by smtp.gmail.com with ESMTPSA id b16-20020a056a000cd000b004fadb6f0290sm816866pfv.11.2022.03.31.18.51.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 31 Mar 2022 18:51:31 -0700 (PDT) Date: Thu, 31 Mar 2022 18:51:30 -0700 From: Isaku Yamahata To: Kai Huang Cc: isaku.yamahata@intel.com, kvm@vger.kernel.org, linux-kernel@vger.kernel.org, isaku.yamahata@gmail.com, Paolo Bonzini , Jim Mattson , erdemaktas@google.com, Connor Kuehl , Sean Christopherson Subject: Re: [RFC PATCH v5 032/104] KVM: x86/mmu: introduce config for PRIVATE KVM MMU Message-ID: <20220401015130.GE2084469@ls.amr.corp.intel.com> References: <770235e7fed04229b81c334e2477374374cea901.1646422845.git.isaku.yamahata@intel.com> <55fa888b31bae80bf72cbdbdf6f27401ea4ccc5c.camel@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <55fa888b31bae80bf72cbdbdf6f27401ea4ccc5c.camel@intel.com> 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,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, Apr 01, 2022 at 12:23:28AM +1300, Kai Huang wrote: > 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. I don't want to use CONFIG_INTEL_TDX_HOST in KVM MMU code. I think the change to KVM MMU should be a sort of independent from TDX. But it seems failed based on your feedback. -- Isaku Yamahata