Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp3451066rwb; Fri, 30 Sep 2022 03:56:10 -0700 (PDT) X-Google-Smtp-Source: AMsMyM41y1x7ApMQLVsnROSZ+aaStGMenN/EIHM/qz3UtHDJMRrDjl/oUXvuNJolXJ7TKHAmMbGS X-Received: by 2002:a17:903:2288:b0:179:eb73:b9f5 with SMTP id b8-20020a170903228800b00179eb73b9f5mr8344056plh.163.1664535370231; Fri, 30 Sep 2022 03:56:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664535370; cv=none; d=google.com; s=arc-20160816; b=lImAxCvebgv2W8eUxNIX6ybzUM8MW7E8busay4FgP70hDfqod7NusStrAuoSoZZLJl 8J1AGK09nsX9hHdyxxoTrrduSHa+Atyw78o7244qOmB6wwpV7jD0+fvdXEaB9oUCAGTu CxGt2kwNGDvslFKqZ90H88H4r7rFHd+ynr7wDajWVahHzCi9jRsQQk1L3DW+ElR30u5q vILpzaPQGJPzK1I0Pvs5Be1xBp0iHvXidDqmk074jfACfyMASNg+6DQiY6O/F2aCouG3 oqHnWQLTC9Cet9Bj2Sa+ehEM8Ra8ESlEABmH9lLEB8H82BgD6I9YTnXHH66ffDWk2RKw dWYg== 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=FDNSdkRp3nPjskE96/1bh2xzVDan3gNfNDbTpr48hvI=; b=BSpKo/t3ggUYjTLksZUrYhav5+bG7GgplTjA0zJxXvWZOXH13Ib6h5waLG4f0lbvtD cyiyKiu2W1TMH8C7qwlkLCryWgTigrSdLKqEuC/XloD5Ka5opKMt+lgVkaep1ar467O0 mHSo9ipT4D4r/AP0VDDySRU79Pim+vuVhXV5znSlwesiPxkxrKY0LLAUk3E3BmNi3lSq 9rAEaaJRLqNkOCy4BfrDp8OVS4zgW0R89+dMvaUECi7WQ4PlHzzxLMxIQf81OGol5bL4 Xj24CtqKQnVR9dsy+hvpHQBYSTBGvhpWjrBWNIDiupA89B2gc4nNqy013ewyhPca9RrW Ljjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=eDNBDfd2; 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 z18-20020a170903019200b00176939b5cd9si2972145plg.578.2022.09.30.03.55.58; Fri, 30 Sep 2022 03:56:10 -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=eDNBDfd2; 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 S232011AbiI3KVb (ORCPT + 99 others); Fri, 30 Sep 2022 06:21:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33702 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231430AbiI3KTB (ORCPT ); Fri, 30 Sep 2022 06:19:01 -0400 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5E9B815ED1E; Fri, 30 Sep 2022 03:19:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1664533140; x=1696069140; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=Ofl4tu1tk6jjezt6ZEuGxsaoew3+Xuq9m3NoTHM2FO8=; b=eDNBDfd2r5gSu3o3RF2CoKUih9VIktLGECcZh4ZC6GWkFUyuSd5wOBIs 3TRa0ruOuy5Iu2+l/a5+WTKJOpremx6k1yiF9p8Q1KH0lu2mSWmp1Cmyy xWtv7Dc90DIA8khkdz+sDAbbzTI8mKqvIWs+TIQLy/yM45WMNVfOsJOwU EqhxVOK2We65lSZydxcfq6TtQloEmze7gljB12hNJXM0D+ZAwnP50ZlUB Jfk7RMyFOpWM9tQlerRyWtYguHdVY1CkGyckXFUovdiek3YIHE2rKe4NM 7WyQMWEuK3vBv27JiCqSkFnPTmI5FoDnuqNvcLowKGD77h0JrgRTsFwGv w==; X-IronPort-AV: E=McAfee;i="6500,9779,10485"; a="281870082" X-IronPort-AV: E=Sophos;i="5.93,358,1654585200"; d="scan'208";a="281870082" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Sep 2022 03:18:55 -0700 X-IronPort-AV: E=McAfee;i="6500,9779,10485"; a="726807589" X-IronPort-AV: E=Sophos;i="5.93,358,1654585200"; d="scan'208";a="726807589" 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; 30 Sep 2022 03:18:55 -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 v9 027/105] KVM: x86/mmu: introduce config for PRIVATE KVM MMU Date: Fri, 30 Sep 2022 03:17:21 -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.5 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_PASS,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 25a24909375d..350a921b15cb 100644 --- a/arch/x86/kvm/Kconfig +++ b/arch/x86/kvm/Kconfig @@ -131,4 +131,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