Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp2243059pxm; Fri, 4 Mar 2022 12:10:27 -0800 (PST) X-Google-Smtp-Source: ABdhPJx0r+r+FMM39tEFSphYejvl8/wB6JLp1cZ8sEkZhsZXa+USB9qc/dSAXbasqUKORCFjzf59 X-Received: by 2002:a05:6402:238b:b0:415:ce67:49ee with SMTP id j11-20020a056402238b00b00415ce6749eemr189994eda.199.1646424627677; Fri, 04 Mar 2022 12:10:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646424627; cv=none; d=google.com; s=arc-20160816; b=voFohFoTTChYBLE05A5x9zoxiwn4U/7aj/cT5vGNpyPvzxu0jsfiNox3eaADw3g/gK fHBb2YUO7E2cI+oZEQsOyuYcL6i2o7+EIjm5rfrmr08d51hawyr1Nf75MAG0orlMFf6D zmzCRG9TyB2EU9t3wJElKn3HdFYrd8goxYdSmLwI3lsqjzr5LCIoTf3WhDApOTFp74AK mY4A/embv37Z8SSVqgJCv8FqJld7q+od5KHFjSviDf8aQ9ANxcPFCOMK0Wov5Z+u3BIo hIZxdKi1fsZkDdHRX+7VGdXkbf31W2Cyf7ygPCEu2ihcuX61B/2XlE+UhfhzeFfZdB9Q WLig== 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=chwmyRd2nbPDFn/q0ctJiyHIv6oZ/NufJ6zRgZrhlU8=; b=J297KTO+slLFbMkR7pZ9YyVJ6pCxDwZBYyjy1jEo12ZfISYywD/x5lKDRfTtLMqFko HaC6piFHJT6+4tLZWiSg0MKhwCPs1FLB8MqMxXDSGj+LCisTn86Gq2MoWNDYebNEaSfW wd40Obn3PCDznVvQqX5iYVn5PMnAr8qvTBSsmF7XYSRuJijH/sUwYaEKLVVqdJDysS30 iZBiR1wImdxcGCGVDGGaWyksxGKcw/yDZkdzGmPmbkRWy20R3NbOIpvz0pW8SMwe+HG6 meU1gS73WZ1BJ8h5sD56d6e5KWzPvDokKteBG6YqDEoq1jG1/5dfo00CzWMbeP04gYIy 3a7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=N3LUaS6K; 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 y15-20020a50d8cf000000b0040f13a5a14bsi4355520edj.95.2022.03.04.12.09.54; Fri, 04 Mar 2022 12:10: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=@intel.com header.s=Intel header.b=N3LUaS6K; 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 S230494AbiCDUKE (ORCPT + 99 others); Fri, 4 Mar 2022 15:10:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58132 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230328AbiCDUHh (ORCPT ); Fri, 4 Mar 2022 15:07:37 -0500 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CDA8F63529; Fri, 4 Mar 2022 12:01:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1646424119; x=1677960119; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=VyVTYl2QIObZYA2SUsV6vz6ThrOPujJRwmRWCaxnBJA=; b=N3LUaS6KaR80+4zwHnbxvTXXXTroq7l6te5m1WHQteKGx3JM8/nnuo9r FMpenQc9hfsyOiYSGxLj2dx+kXpwNupw3NRxYgvSGmap32+q+wew50tgg FM7kp98soNAfOlHnbJr7rxNsNfq79sif1lfZxb3LwWH/0LA7RwxLNLM0j L/iK0vPh1bklVhuebFifrM4u+cSACCWmv5/U7VwTO5VFoCSCD/qu+gTBH jtirhKtCD3rp9rI6NqVnAdSVvxsJ7j210Kw7nMz8/xpD9IgExlBvl0WQR vCTBVlLQt9e2BGrMT4ojL75op6cDuHFxULpRk1rnvORk+OCef8fVo/h2P Q==; X-IronPort-AV: E=McAfee;i="6200,9189,10276"; a="253983441" X-IronPort-AV: E=Sophos;i="5.90,156,1643702400"; d="scan'208";a="253983441" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Mar 2022 11:50:17 -0800 X-IronPort-AV: E=Sophos;i="5.90,156,1643702400"; d="scan'208";a="552344288" Received: from ls.sc.intel.com (HELO localhost) ([143.183.96.54]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Mar 2022 11:50:17 -0800 From: isaku.yamahata@intel.com To: kvm@vger.kernel.org, linux-kernel@vger.kernel.org Cc: isaku.yamahata@intel.com, isaku.yamahata@gmail.com, Paolo Bonzini , Jim Mattson , erdemaktas@google.com, Connor Kuehl , Sean Christopherson Subject: [RFC PATCH v5 032/104] KVM: x86/mmu: introduce config for PRIVATE KVM MMU Date: Fri, 4 Mar 2022 11:48:48 -0800 Message-Id: <770235e7fed04229b81c334e2477374374cea901.1646422845.git.isaku.yamahata@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.8 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 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 -- 2.25.1