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 D88F3C6FA99 for ; Sun, 12 Mar 2023 18:01:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231518AbjCLSBZ (ORCPT ); Sun, 12 Mar 2023 14:01:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34570 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231455AbjCLSAv (ORCPT ); Sun, 12 Mar 2023 14:00:51 -0400 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 679F37A8B; Sun, 12 Mar 2023 10:58:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1678643924; x=1710179924; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=6IUEaKr0ie2ujCgGN6VZgF9eKrBotyox/Fn0sSiFqCA=; b=SsZXWT4z0eOue6eKXpp3+8K38pa9hDsRdSAoOEZMtrNLnuwTkxFze+PQ fPZyZLc1LPCpF9fO2gQ9b4c3aDjYtkuFtpFReVi7u1WFSawvzEqiD5UXV D3h1jgnlmaBzBXk8dPqYFIybm1nwV1h/0L+DxchcJlBru17sPorvLrKJJ PbU5nklr1plx9KXIq7FXiKXBZ4/lEGaPceNtyEEVc5FEC5lGyia5abDzM XPycgajBLlpxj4bvTl3G0G3zbjuGmsG5KR+yz9vEjaph+kKmQzBeYOv1n M6a2YMlhlcqKLmAzxHq+uO1b5QY1G3sNyLZmOmmfUAh2REJB23iKk2myn Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10647"; a="320863650" X-IronPort-AV: E=Sophos;i="5.98,254,1673942400"; d="scan'208";a="320863650" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Mar 2023 10:57:58 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10647"; a="628397009" X-IronPort-AV: E=Sophos;i="5.98,254,1673942400"; d="scan'208";a="628397009" Received: from ls.sc.intel.com (HELO localhost) ([143.183.96.54]) by orsmga003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Mar 2023 10:57:58 -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 Subject: [PATCH v13 027/113] KVM: x86/mmu: introduce config for PRIVATE KVM MMU Date: Sun, 12 Mar 2023 10:55:51 -0700 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