Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2688471rwd; Sun, 28 May 2023 22:15:21 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6kD80i9tktDnzi9ehV098fHhUpKtazk50jsnGNhoSTa+MHhtFs/2kiysDzdI3bAqLU/2wm X-Received: by 2002:a05:6a20:394b:b0:101:1e75:78e with SMTP id r11-20020a056a20394b00b001011e75078emr7068148pzg.14.1685337320892; Sun, 28 May 2023 22:15:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685337320; cv=none; d=google.com; s=arc-20160816; b=kkayo8Td+bnu1Ls6fiDYiJe8sTcIeoGYJdI5JVrgn1AJftrU/+C+ONOB1O+Nq/77dA Adxll4rskI8dWa47U7CbK7/w+bNLINWAmXBJezebvJ+taVYNAkfdgLzAPNDKv3yyFMoR 1FoxS29SS80297Gyi7BU2/G9Mt2lqXuiZHyp9ZTGn0by1G0ZfULyvGUIfbJYfDDjKhog 7Z8Mn3XZkFJnGElWksVqKoVdvb0JqHBxcFYoihZxHOjPdA/7lRCKzgzHpFSUOa3OF59/ IsWQSwUdcmdcqxX12S6Lk5WIAyLLhCbHL6T7h7j2Jpnpqxuzto4c4ZIFSaJEMk5O/6cx wyYg== 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=lA8TOlm4iLBMWz520j8QXOLGcMK8QQcLIGGyX09ey8I=; b=ZxSealrMrHlcBsEIiKWLfEv3kayvbA6zRV/zKu0zRWu5GOjaqQ+heNGmjZEsiWqLxT WpC91Tv0DDEESrPZa3tCFDkMsiMQz3vTrWJFgxhS5oVDUzRb10YKJT3OxLZ0hx0nYPfn 3g85iLLQ0YaRjnM9FQ6l3eInvUnJbR5Nj12St8QVlSQyfMBBnBtbZE6E56lvm8odSMIz d8Y8EClpvABeNZhi2Yqp46yoQfYjavZHwxa+K+WJALpfqqaWrySa1pDkAkNlnPHIo3tU g4wCVk4M42xHIjqeWKXpcFRfR8f4Is3+XAEzRKTv5DOGZxZYBQ66VQGPk2YPzXwTdLzd qOuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="aqJQ0n/K"; 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 24-20020a631258000000b005307b843a98si8793970pgs.53.2023.05.28.22.15.08; Sun, 28 May 2023 22:15:20 -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="aqJQ0n/K"; 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 S231761AbjE2EXq (ORCPT + 99 others); Mon, 29 May 2023 00:23:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44624 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231726AbjE2EWt (ORCPT ); Mon, 29 May 2023 00:22:49 -0400 Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 16881E60; Sun, 28 May 2023 21:21:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1685334071; x=1716870071; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=6cAWaQLFk65Q+5kSmGykPK4PbtBAfbZ+dtMDCwOOKyM=; b=aqJQ0n/KGABwGthDlJNzCbrImJk2OLrB98elZxfClMpKu0sPay1OJOw9 enHjoRkK5xlVM2HejHhBYK4umOGPJYC3CEVpqo4T3ZxA9MsSbqaCkmWQE XDQaX+U4eTqPO/u4tbSaMq1hnCbym/oX8FsrhsbxQrr0RSLZQhj9DjWgA RuFxtztA1raYwuoGAh95witaXjGbyq+i6Gx9hdI7eCMrtsDOvU0HARVzJ WMgMEboDrC4WYU8A+RZuXJ9Mgan6QWi2/B0JMfM6h2uJCsPGMrUnX3NkC FqE6VNYmYfyr61OZriKAN8PpxkNK5+GioHEWmIfob4hmgZ3EcfP2le8zo w==; X-IronPort-AV: E=McAfee;i="6600,9927,10724"; a="418094381" X-IronPort-AV: E=Sophos;i="6.00,200,1681196400"; d="scan'208";a="418094381" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 May 2023 21:21:01 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10724"; a="683419375" X-IronPort-AV: E=Sophos;i="6.00,200,1681196400"; d="scan'208";a="683419375" Received: from ls.sc.intel.com (HELO localhost) ([172.25.112.31]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 May 2023 21:21:01 -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 Subject: [PATCH v14 027/113] KVM: x86/mmu: introduce config for PRIVATE KVM MMU Date: Sun, 28 May 2023 21:19:09 -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=-4.6 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 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 e51544991251..f42b71246d79 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