Received: by 2002:a05:6358:795:b0:dc:4c66:fc3e with SMTP id n21csp1441343rwj; Sun, 30 Oct 2022 00:23:44 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5UnobAIvedvwEtMf2iZiwDd2hMHVNFdBaWAxQbN75Hh2aF1wuyebjl8xMShX6FM1FIyDwG X-Received: by 2002:a05:6a00:1a8e:b0:565:b185:cc10 with SMTP id e14-20020a056a001a8e00b00565b185cc10mr7775816pfv.71.1667114624071; Sun, 30 Oct 2022 00:23:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667114624; cv=none; d=google.com; s=arc-20160816; b=Wqq50W7d5BZ3j0sbYB5rDnOQN0MiJU6CDgGsT3bXWwK8c1os3877wk6O55WK8m6AyO bxKj1ezN4hbsxG+Bs28l1x5GDCOaae9wwd5poAe5wfuY3WDxFtf/6zKKGXbhh0DkJkYw 3Khn4F56PY+x6AqGQNM3SBgUwMGWEU1t+ei2vtlzugYGtHv4IIBdV0eHX+U3jHbRRNtV HcwVMMckmS1RebLyJfurF6G/8giE6DYBC1p7yeCg3ESp04WLmF2xElhi3CMvJqDyyXi8 ZH8KbjJxwdz7kL7OeHZW3vDRlmSGjumJhPIv/qvTSRKlSySuiCEzX2CYv2+N/ymGVX/5 Mb3A== 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=L+x5v5uSIqpA2ITa3J3tCEZhP2fdF1WW3sEk79SJUdM=; b=nxFfiHb0jeQaqxbDRbPkaKKe2+p/NPhBvT7uWdJ5Z9HJ6AwlXLNTl1Uhh3V5KAqx0w SiGM4YfJ9xITAJ3diBcxWROIkRBHjNI0FThQLRF72bpBqCGWnC/G1gFOa1BcR5k+CxNZ CJbzdColGNRUT6KZP7J6l/4RoXCQTFhctO9Xua52rO6hfnWrSX8Mo+YIkjsd+7LFT0uf RFnWzRp5Be676TK5eRE6f1a3TVeu2p2LOwBYj7JH+O6H/qjsji1ji/F7oDrlWE0STrcW d+tK8l18YcU8JAY3fQJgZ8MgEt2VCuy3Cx6cKxkwJ/ESkLJsMCHBXgn+rjgs73PrYGgF g4Bw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=JuwHeMaC; 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 e11-20020a170902744b00b001769e71398csi4086078plt.340.2022.10.30.00.23.33; Sun, 30 Oct 2022 00:23:44 -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=JuwHeMaC; 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 S230209AbiJ3GZi (ORCPT + 99 others); Sun, 30 Oct 2022 02:25:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46972 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229874AbiJ3GYI (ORCPT ); Sun, 30 Oct 2022 02:24:08 -0400 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 78C92CD; Sat, 29 Oct 2022 23:24:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1667111047; x=1698647047; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=WrHckUqFHfiof4poG5sF1RlRME0x5PTeFyG15y9QQLI=; b=JuwHeMaClDFiQPeO/nYmkLcD9YjHSiGqJkjMrMZD3rv8oFmtjQG2l0SC SBW1gik5ze1EMVndryYU2JgOevlTZ1yyJE50uxrRBOUozTyb3x+aLlWhe 3RCoXOtjj3RiOZ5Vd3QJ166sDpBxrkuZr58PVfT/jbgrE8vsfgxVsZwAq fPH4mt5fS/meqWjlMq7zrPwPMQ/+J2rzW7Ozcsgcr56pe9ArL/hw2pCdU eE7RmV3G8f6sWDKf9qiDgg503OaTIJP79Kc5xn2fSc+OMR211tUpPp8Hq TW+rYWnkyvgtiTHy5+q97fzSlPLIyuTJUEu5XKpYDldCOjrfeeXC9YZzR Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10515"; a="395037140" X-IronPort-AV: E=Sophos;i="5.95,225,1661842800"; d="scan'208";a="395037140" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Oct 2022 23:24:01 -0700 X-IronPort-AV: E=McAfee;i="6500,9779,10515"; a="878392928" X-IronPort-AV: E=Sophos;i="5.95,225,1661842800"; d="scan'208";a="878392928" Received: from ls.sc.intel.com (HELO localhost) ([143.183.96.54]) by fmsmga006-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Oct 2022 23:24: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 Subject: [PATCH v10 028/108] KVM: x86/mmu: introduce config for PRIVATE KVM MMU Date: Sat, 29 Oct 2022 23:22:29 -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.9 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 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 73fdfa429b20..6bafdb2ce284 100644 --- a/arch/x86/kvm/Kconfig +++ b/arch/x86/kvm/Kconfig @@ -133,4 +133,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