Received: by 2002:a05:6358:e9c4:b0:b2:91dc:71ab with SMTP id hc4csp4119300rwb; Sun, 7 Aug 2022 15:35:58 -0700 (PDT) X-Google-Smtp-Source: AA6agR7tMFoAWAmHgG06M5hPvyL0dy78jkFPiTPdWrwVhJfy/6MvcrBx1vVSxGfe5HHHnce7MiDh X-Received: by 2002:a17:90b:1e08:b0:1f5:3874:492e with SMTP id pg8-20020a17090b1e0800b001f53874492emr26348760pjb.82.1659911758434; Sun, 07 Aug 2022 15:35:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659911758; cv=none; d=google.com; s=arc-20160816; b=YwURpooCdcQoJ06BUpztdH4APOPn4Tddu+Ui8Pv4kYcP93kEjWX6vy3hIcFhnjNfmW US2WJeO4ewaQkqD/jXS0RkRYVYOWrBe7VVLGEu+YHEeONl2FysKHrvjvasitfoi6KGuf KI5f+tNtSD0yw60DaCPcv322W/+VD0k1SMJ5mhp60Xb0DozzDyTElBtMGKRx0XQKbYsu DcPxs0jp+0a+U/UKZiyvuDycy9LB/syfnYNfGSbe35xsYMkvPsxjxjybg/NMvlSaqUXx ggc10+5Ve2zHlv9KSdEyBZhHB/JJ2zR498nCJ84ZZnxkUrsD5sKOc+8Li/fqgwuN86OH Cf3A== 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=41wq3T1geLNyynaazygkeJlwMNQfFaIZ1U0P6fxq0EY=; b=GGzRjh8JXjRmNqf4PR0Xzn6+lDVUgUiI+ydLMhxsL96QrQnmupSQY3WxwECMaRYcD9 osfiHHK95kODh9LBEwFgx9G1MllnsFLQhJGdGud/J0AE6s91QBnm8+Zr6uCKobCVSyRV bQByqCbhOTQ3c1VAceuCnKaNz6Z+d6kelNuGGYu5p8IL2Fgkf9n5ks9XJqDdIKxd24nN 9Rdlit1loGufORU8XnDqiYxEO2sExSsoVSnvCB+HB2ObNa+GRkNzvq1m9aXV2mWNW0cz J5qFLyu/r9Ftx9RqAgjNX76ufY+G1eMKThufWey4oXzJB5d0lbK7Oj0OgkXA41UdM2yy 8/jA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=JPrQXhOL; 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 mi7-20020a17090b4b4700b001ec92216b35si15276338pjb.160.2022.08.07.15.35.45; Sun, 07 Aug 2022 15:35:58 -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=JPrQXhOL; 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 S235392AbiHGWGg (ORCPT + 99 others); Sun, 7 Aug 2022 18:06:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48924 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234727AbiHGWCv (ORCPT ); Sun, 7 Aug 2022 18:02:51 -0400 Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CA8BC95B3; Sun, 7 Aug 2022 15:02:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1659909761; x=1691445761; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=PC6kPWflN2d90HM5/wIThoVyAqhtxb4y/WPY96n5kBo=; b=JPrQXhOLHsjx8jX09OYy9zPDw4l60KJjk9SO7bgLxK3UQtQQr1tLhdta DxFDQykqAI45aaT/enJ2fWJbYi10z5o6OCnp/UyklAVHN/3tCAEgOso3/ fvtKdWBbJDgbbNp5tuUg1ZFujPUB4A5fMPAmXxe4zGGFCKoO3vcM9riV7 AJNG7kuEryPDKBH0S/8rfSKfS0YQYsA/3arL2zqZ8YJO2/eQ61cNZbZhL RcxkaFjeuj+ne8xjrtoMVtUENntCsnQZG2fEg5sDe3KX3dz+5zqV+Z6qV 3Dx3/i5M7Q/JjU3D0LVs62LPilk6mB93/LDWEFoL04c1MdhIR+IkkLkQ4 Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10432"; a="289224103" X-IronPort-AV: E=Sophos;i="5.93,220,1654585200"; d="scan'208";a="289224103" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Aug 2022 15:02:33 -0700 X-IronPort-AV: E=Sophos;i="5.93,220,1654585200"; d="scan'208";a="663682529" Received: from ls.sc.intel.com (HELO localhost) ([143.183.96.54]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Aug 2022 15:02:33 -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: [PATCH v8 029/103] KVM: x86/mmu: introduce config for PRIVATE KVM MMU Date: Sun, 7 Aug 2022 15:01:14 -0700 Message-Id: <35cb1cfad5cbab00c6e4dc4d8627e9fa164a78a8.1659854790.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=-5.0 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 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