Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp3428861iog; Mon, 27 Jun 2022 16:11:54 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sIgkSDwGjq3RafAT3eRZZWKHKMa7je2AtUB+Vb8wYmp/pzy1o++pCQcZxFhaoBmufhZitk X-Received: by 2002:a17:906:c151:b0:726:95c0:85dc with SMTP id dp17-20020a170906c15100b0072695c085dcmr10903539ejc.118.1656371514594; Mon, 27 Jun 2022 16:11:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656371514; cv=none; d=google.com; s=arc-20160816; b=b2IiWTg9kmI11vJemYO5A6PNTaDEYmm2hOsrqDf8iMFoLov+miomI1RgPdZdyigkdd TqNdpXXWm4GcmoLF7TJU2XMnt3VwXtJ4QzB8O/ONK/aPzf2mabXAvegs5kFv7XKjgRRt qYr/g+4IOYtN5KpbvdGKL42w74rQNEz/XWyuGB2utKlb8wAoQAFJmEg3w07RmNUxWf2p 7v+OGBH9y6oV/g535mWWcg0c/YBLyQUTuFJa36T9HLdbO0qf6QARWeFhu3aD0I8eqZFl WhkoxtZAUv9U5ebC6H4mpCNn1WrwKULn3ZIny+FHLLuiVKnLefXqxeDl1ZlWdty94Ja8 8SyQ== 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=7E1h9bflQLgVh1X+zdy3ksSvu8LR691pI4g0ZMwvtBs=; b=Z8ky+wlJH9eOzNRnPOAxCFGBKjI3Bid7Sv6KYRNDnWIDu6oOUHFxz7VoEEp51jkE69 65AXAJLY0cHm487fCb2gtIrsi1XuTCd1MVEm000lKrN0blJ7dBkQBOQQYaPScpom87Xs UO63QSi8I9YnEGwf8ldX/YdZVTAXzA3y7mlEDN0MOUGL1ItK3dRVjwaUKYxhiMmwreHP EVwABrjIh/OgqKXU/i+yLMfSWA/aW8f9wimi9G28EjoCBtCOg4Lq21vTi9d4UPujsY2R srT7SKQUNMGwQcKjyuVglKrEIrkt6s2RsUtzuzm8AoPFEoBLLpXmYxdzpFXRqYDBhzDJ /4Vw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=aeUneMT5; 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 b15-20020a056402084f00b0043779a90504si9559247edz.606.2022.06.27.16.11.30; Mon, 27 Jun 2022 16:11:54 -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=aeUneMT5; 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 S241680AbiF0V5G (ORCPT + 99 others); Mon, 27 Jun 2022 17:57:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59340 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241370AbiF0Vy6 (ORCPT ); Mon, 27 Jun 2022 17:54:58 -0400 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BE567625E; Mon, 27 Jun 2022 14:54:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1656366896; x=1687902896; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=yHcwMDhdHNxS1z+HmPGIPHlVsmRfZFfsT3rl08Yk2/s=; b=aeUneMT5pYQ/8i+F8MEARLOtxbtHcIftfWVYCP2Y1bj0uIN589b6xztP UYqH5BTjegUMer8qOW/J2iwF0ZwWaAjxkfYxLQjwty/gyP61CCZmsVZMB PWTqjCImTz6WmJ4Zpf0isdpyJVMQiSmXpqLV4RpQ625PtjSp0DSxSzz4x ziUwQS0DrmOMLVCILpElMzrmfpvlLljsnCNi4m7tGRwz7YhWnL2TK3GOG wKZsTxQhyCdkNha7dexNUuWl24PIbw3fmjcXcLdXUeXBCXDUI1H03zsrF E2XIxxX6nxIKkobFLA8fooCA/s1orHIpNtFPhRPqIxuNakIQfSeJLzU+9 w==; X-IronPort-AV: E=McAfee;i="6400,9594,10391"; a="281609535" X-IronPort-AV: E=Sophos;i="5.92,227,1650956400"; d="scan'208";a="281609535" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Jun 2022 14:54:52 -0700 X-IronPort-AV: E=Sophos;i="5.92,227,1650956400"; d="scan'208";a="657863538" Received: from ls.sc.intel.com (HELO localhost) ([143.183.96.54]) by fmsmga004-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Jun 2022 14:54:52 -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 Subject: [PATCH v7 032/102] KVM: x86/mmu: introduce config for PRIVATE KVM MMU Date: Mon, 27 Jun 2022 14:53:24 -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=-7.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 new flag make 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 e3cbd7706136..5a59abc83179 100644 --- a/arch/x86/kvm/Kconfig +++ b/arch/x86/kvm/Kconfig @@ -129,4 +129,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