Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4756411iob; Mon, 9 May 2022 00:24:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyUxneFgiKJ86sMm7GY1vlDLzeD4PUg/CuASrYrm/LS1Z4FTVE+bVHnpDj3/A0y0/Hu6zXi X-Received: by 2002:a63:90c3:0:b0:3ab:24df:fa19 with SMTP id a186-20020a6390c3000000b003ab24dffa19mr12187837pge.608.1652081065486; Mon, 09 May 2022 00:24:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652081065; cv=none; d=google.com; s=arc-20160816; b=rAfXgP1gFftsUnnXvu2DmMLlePYkTWR+C/01gbefKy/bSYi3fEpttzDbcR4U749KEc uvnLV8WYf894nWRJmFOEQOj6QlYx19RZO7mmqIlruvw7xS/U64ETNOb8YVR4V8jHTiMj +C3xUVm2J5sgRp2xkDaVbE7IYrYQgXyTug77jYgSc8kcsDZL6q1zqM/wBf0T0Sqpgm3G h0WHmhODClHmgYV/qeG3zIgINwAZBSZ0sbUdDKKeym4+SiA0VNPhWTQBy69vdMCTneTf W3afYHshAWHJaFl7MLEy/i3+S1bkgnBi/mIJVR0xdjZH+MVyVGHePBZh2yAPONbuvkPm YSng== 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=u/38XJRiCkxDfGOAkSADh6j7zPoeFXifDmv0s/I1rHYaR/h/Ta9apx4R8l22wuwqON GoX9EZtJjgxNYk9z8zQ45ihut9BeIax55VJ/UngvDmv12H358GeVKsVDX9+mma5pdYCu e3SoB5RXy5YvKMlp3f1kCiiVTEiDV9ALroIlr16UkUkqAqwoeUZh8P9YyaaWd/4SuyUH rin99NDFGF/jJrRwLTPzSQQPkJHbTn4l247PIdd7ZGFPEml6U8kzfNKOWPdIYWsTIbYP a9OLKRtEuYPvOpLl4Gf1sQY00xIG9kxPm/Gb/wTS6Djzzn1tvikboh6pHzPSGeJtP5Dg ty5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ExWL3QRo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id t4-20020a17090340c400b0015ee6096fadsi11078120pld.69.2022.05.09.00.24.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 May 2022 00:24:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ExWL3QRo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7CBCD153533; Mon, 9 May 2022 00:20:35 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1383472AbiEESUM (ORCPT + 99 others); Thu, 5 May 2022 14:20:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36326 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1383097AbiEEST3 (ORCPT ); Thu, 5 May 2022 14:19:29 -0400 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 540AB15A30; Thu, 5 May 2022 11:15:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1651774547; x=1683310547; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=yHcwMDhdHNxS1z+HmPGIPHlVsmRfZFfsT3rl08Yk2/s=; b=ExWL3QRooY3s11YF+NCyR9kY5Iod+xNqdQEQncLk87snaqjvQJsntZ56 dKQZT9+cbYtmLnvRiQvQGapPKAd5EqlCuyX7HcMDCW/1xmP/EBfQR9n7k a4/6/bBLGUgh/Ni6RiFDJGseJYOMvw+B9uHmxFGZ0moBtxW7L5V7cWXcf 7RXm5ZVBEmnhcmhYOJJdAdzjDlDQvhyQtj9zqmGfp6UXixpLy+sNKKKLW Smor4XKfjcGDZ+lydsm9PCt6CfedMU/DQRBmiF/93zLCiVpNc9UWDG0Nw JdHOsWXBMA7s9rzdflXy01ZTWlQOgyrbYZoNBBQnxoKU8YPr02eFZiIut g==; X-IronPort-AV: E=McAfee;i="6400,9594,10338"; a="248113869" X-IronPort-AV: E=Sophos;i="5.91,202,1647327600"; d="scan'208";a="248113869" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 May 2022 11:15:44 -0700 X-IronPort-AV: E=Sophos;i="5.91,202,1647327600"; d="scan'208";a="665083246" Received: from ls.sc.intel.com (HELO localhost) ([143.183.96.54]) by fmsmga002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 May 2022 11:15:44 -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 Subject: [RFC PATCH v6 033/104] KVM: x86/mmu: introduce config for PRIVATE KVM MMU Date: Thu, 5 May 2022 11:14:27 -0700 Message-Id: <7d91cfb0b37b18a072043929c4c6dae7c78cd85d.1651774250.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=-2.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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