Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 31AC4C64ED6 for ; Mon, 27 Feb 2023 08:25:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231130AbjB0IZJ (ORCPT ); Mon, 27 Feb 2023 03:25:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55312 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230227AbjB0IYQ (ORCPT ); Mon, 27 Feb 2023 03:24:16 -0500 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 62E0F1CACE; Mon, 27 Feb 2023 00:24:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1677486253; x=1709022253; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=6IUEaKr0ie2ujCgGN6VZgF9eKrBotyox/Fn0sSiFqCA=; b=cTG9cgTC6D3ObJlEIR5H/XfHS9qsMt5gCLiLvvsVOzVer7W+SApUp/FJ Q9ApsIFjlDHe0bNvkumkXMewh6FdFlpe8PFldEg94VschhfjC5+mfZy6j pPkXgxNEI648ua8BeUJPoy64ghSpalkTZMtApfyO+a5tSyGbkn70BK8pX /K0hkMMyQpRo+V77FZLQjgTvt2EInP2BSP8IklJZ5ZYVlabHcNlApnlTl E7LK38YRBKdCkbid2zdRNsPlqZIQD6aZnenxGPmemXHVN0UT+QYJN5BOf KFr8hyf+W8pI3a5GRw6eEtAcPVqlM7CnuZ82D5mkob3OFaaepa1baDO0v A==; X-IronPort-AV: E=McAfee;i="6500,9779,10633"; a="317608750" X-IronPort-AV: E=Sophos;i="5.97,331,1669104000"; d="scan'208";a="317608750" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Feb 2023 00:24:04 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10633"; a="783242104" X-IronPort-AV: E=Sophos;i="5.97,331,1669104000"; d="scan'208";a="783242104" Received: from ls.sc.intel.com (HELO localhost) ([143.183.96.54]) by fmsmga002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Feb 2023 00:24:04 -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 , erdemaktas@google.com, Sean Christopherson , Sagi Shahar , David Matlack , Kai Huang , Zhi Wang Subject: [PATCH v12 021/106] KVM: x86/mmu: introduce config for PRIVATE KVM MMU Date: Mon, 27 Feb 2023 00:22:20 -0800 Message-Id: X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 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 718010600956..45ac6b01af44 100644 --- a/arch/x86/kvm/Kconfig +++ b/arch/x86/kvm/Kconfig @@ -153,4 +153,8 @@ config KVM_XEN 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