Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp249228rwb; Tue, 25 Jul 2023 15:20:57 -0700 (PDT) X-Google-Smtp-Source: APBJJlG7mYDdXy1/sBija/+R1cFa/to1aVUCUcZbeak2ZWitUxYrY5tLG5awjT9FVs2wSZSzlWmT X-Received: by 2002:a17:906:9bdd:b0:993:d8c0:f0f6 with SMTP id de29-20020a1709069bdd00b00993d8c0f0f6mr525559ejc.1.1690323656906; Tue, 25 Jul 2023 15:20:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690323656; cv=none; d=google.com; s=arc-20160816; b=qTXzKw8pOedU6XWl/zE+6OQDI9qRTSkvlbccUEPFLVlb3iKg9LdWT3a+inF4FVr9hu LXJOAn6U3bc9OBngJSg/y0VOYei021SuVxjLdbHB0kL+G9Uvt+jPKvivpD2zwfVqzf0w difnM6n4cMPQMe6OTDUib7QjA9iL1PR9DHMrS6Ss/RS5ToiLSINJ8gcubRqZehi1Wtib U5GqbENAyP+HeYMtSLQlNA8lfJjqDzhaVJRlIPDjpgFPN/FO6Zto0LfzoLCJXH6xh0GT BUwegdWIb1jLtTE7XfD/lFcE9OAmeX0JrpxATqZDMVCLXXhKuXm6LtrRGGQcP/D6BOlf VXPg== 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=gLxEMWUhLNLxiMFQwoj+eUfc5tkHF0r6mjSZjGRLzko=; fh=juxwNcA6iKwLISFgUCNwdoIYC0NKLUseq3xZdq25RR4=; b=Apdj9ULARrUpVNb0uNss6xmTkiYpEuiX9iGJ+M8T0zmqyCriR7AsaJuMSOwgF9Nj9C mru+8IoxrxtPyyBrbEhSU395Z8vx9XuGOl9OQwbDL5BO+koS4oex6GxdOfopnU5XXBkM BRIO70VTIROh7v7RbkOWCDjfE2guXi7qSRVK7Vg5SPjREMCsyz3GpQiMafO70C0oN6UD MCyEhcudk6eAgQgGVk6fRT7OwnFmoFT1fhgsSJ052XsF//7gmKAf1KqNLyZnFKa6bYN7 PeW3XkaBgj6A73EF3SUYx8nGRTfuE7EmFDWx4ci6Fdm+m8YAYf8nc/l6GRxfq07TG1+Z rOcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="BRJJ/i+N"; 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 a11-20020a17090640cb00b009922cdfaf62si8684958ejk.42.2023.07.25.15.20.32; Tue, 25 Jul 2023 15:20:56 -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=@intel.com header.s=Intel header.b="BRJJ/i+N"; 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 S232158AbjGYWRn (ORCPT + 99 others); Tue, 25 Jul 2023 18:17:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33882 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232237AbjGYWQO (ORCPT ); Tue, 25 Jul 2023 18:16:14 -0400 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B0F0E30E7; Tue, 25 Jul 2023 15:15:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1690323351; x=1721859351; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=CnABhAX+vjImDSiz3yRh4rdSKa5hBkboE8/7lwMKZ9s=; b=BRJJ/i+NNg7C+RvMI8VU9EBv/FAkUwGF7Hj7bVZT1a2MOamm5eEz0UCG yVWspqWYjrzRflTmLfSUazZDnzE0KJ0YVuief1P25AeY1JHTMTy56gxZc b4i+hehbgh38HlBdFuXialOD/Yc4CSvbPHyqphQYr5X6iuAlvP62nduhR olVGfIv/QeAZ+/U7xy8V+WiL8bsVUxY5Ij3/ZPaKaaBOuvZ7pPh7+9osF 4KHTy0VAh1GGcIWUdI5YOy1KrorYH4Yo9XF6T0LeYQ1uGcUugQ2MgSHnp wxJFmbH8e/YTZjmakXnF8mGhQT4+RxvwNfVEq9GWLGGG7QDUqCRLZ8sfJ w==; X-IronPort-AV: E=McAfee;i="6600,9927,10782"; a="357863193" X-IronPort-AV: E=Sophos;i="6.01,231,1684825200"; d="scan'208";a="357863193" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Jul 2023 15:15:32 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10782"; a="1056938869" X-IronPort-AV: E=Sophos;i="6.01,231,1684825200"; d="scan'208";a="1056938869" 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; 25 Jul 2023 15:15:31 -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 v15 028/115] KVM: x86/mmu: introduce config for PRIVATE KVM MMU Date: Tue, 25 Jul 2023 15:13:39 -0700 Message-Id: <13bb1acd32fe2056e61c6dc3dc4863942d8333f1.1690322424.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.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 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 8d09fc955972..c7cb060c4ddc 100644 --- a/arch/x86/kvm/Kconfig +++ b/arch/x86/kvm/Kconfig @@ -155,4 +155,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