Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp2621770rdg; Mon, 16 Oct 2023 09:37:49 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEtgilGi35qnywqmYRZCm8MODKZa039ldM/MmXV/qeGw+DD5hh6KKTFF2Iyw1cokLlqnNSi X-Received: by 2002:a17:902:da8b:b0:1c7:8446:d65c with SMTP id j11-20020a170902da8b00b001c78446d65cmr32797961plx.43.1697474269573; Mon, 16 Oct 2023 09:37:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697474269; cv=none; d=google.com; s=arc-20160816; b=YW9dNwCZZnsUf84pYLTsFdYf4gJcY37TGDaHwChYU34xs3u17fbaUBtmMpR6CqyI2U ImFnPXUxCQsF+RgDxpxMiha5B+fCC84uyBAf+D1UALjOZ50KIPENx0vntHb278yTiRhU pXTMtYmQNsQLuQ0jXr0XtKjCC322ap223pncnciUtXOspS/i4bWRCsRjDixrZoACcpfV 4puGA0Sv5g6O05/rnFcfqe5lfJ7g7IwJyzbCIlpBDsTAFnj/rOMEir/fro6roMGh+sJU cMZUin1O54MPCt7C99CfZLso/yyoZLOjNwCfhdHHan6LPFAx4q0z4YRVOfa6b3IepwnG qzvg== 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=2zqdctcy+5/iHZg4ClBlgvIjvZ75ndjpYL3Y+ssftr0=; fh=lRdU2Q/1zx5DcPdZuWBjshA5VT5Oc9cEhB1tCFiV0Nw=; b=JalKL2UzS4lFbBk8H4fyusPO91FWmtJeDeIRqgTeSVovsXeXKSrBYjpHr2NNIg1bm7 lOaCOgR1E9kWmGEPwj/csBgL5M5klN0QoCWP8crYkDaQtmrFfWf0KkhPKv5VUisoYDIf vi1/PxCg2Z62j9AP9rzp2gBIZuAtiZ9HP+2nMtJqwoLAlt8XQrIy4Lx/UvLP5SvrLmBq V7RwHzNPNhppcBWfds6wjNEUjAPOlDLOrLF2IV/MvGCgcbl+kIn0xKA+CZEtjQWgANg3 tz+Hb2qIcQiEnb3grGbZf+Ly9b7+Rur7JR6/vvLZxPxNzo7olkIkzHIU5vHtnx9xVMc4 1vWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=JJ5PL0+3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id q6-20020a170902dac600b001c9e890f42bsi9602483plx.78.2023.10.16.09.37.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Oct 2023 09:37:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=JJ5PL0+3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id F2CFE8086829; Mon, 16 Oct 2023 09:37:46 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234253AbjJPQh1 (ORCPT + 99 others); Mon, 16 Oct 2023 12:37:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41374 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233737AbjJPQgK (ORCPT ); Mon, 16 Oct 2023 12:36:10 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9432B768C; Mon, 16 Oct 2023 09:22:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1697473374; x=1729009374; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=/5zkp3rNm7BgRzQAmi/3rkFYqYcx9+jnzyMWZ6+Iju0=; b=JJ5PL0+3VHETDu70fGiLoa1Bahrl8U7SXdP53xs3ECABGztkulwVFDjB IXm8gLzr+neI/kV0oijvT+lM0tRxZ7LZlORadnbuaPUMBEYPO90yrHZBo dMeOFCrSlsl5147GOdXfa2M/8wnVqJM++uwjRwouV9dtn9hsBRd5WA0+g 5kW2LRClucpP9IL6Z+QDrmocIlxwEHFg8JMYqUzL++T+Pey6sdWf7aWiE uMzdczKfdZgYfRwwBK56tZ0bg3J6yW+r6oR2ycmddNq+p55CXY53FB91J Fsoq9GcH6bb4R4ROW2obUS3aQ1PawMDbvAcbmhpgSmTsO7BAlkR0WhfNj w==; X-IronPort-AV: E=McAfee;i="6600,9927,10865"; a="365826009" X-IronPort-AV: E=Sophos;i="6.03,229,1694761200"; d="scan'208";a="365826009" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Oct 2023 09:15:34 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10865"; a="1087126086" X-IronPort-AV: E=Sophos;i="6.03,229,1694761200"; d="scan'208";a="1087126086" Received: from ls.sc.intel.com (HELO localhost) ([172.25.112.31]) by fmsmga005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Oct 2023 09:15:33 -0700 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 , erdemaktas@google.com, Sean Christopherson , Sagi Shahar , David Matlack , Kai Huang , Zhi Wang , chen.bo@intel.com, hang.yuan@intel.com, tina.zhang@intel.com Subject: [PATCH v16 028/116] KVM: x86/mmu: introduce config for PRIVATE KVM MMU Date: Mon, 16 Oct 2023 09:13:40 -0700 Message-Id: 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=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Mon, 16 Oct 2023 09:37:47 -0700 (PDT) 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 config makes 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 4a864dbaa982..e08cc4ad5749 100644 --- a/arch/x86/kvm/Kconfig +++ b/arch/x86/kvm/Kconfig @@ -168,4 +168,8 @@ config KVM_PROVE_MMU 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