Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp558194rwb; Thu, 12 Jan 2023 09:17:45 -0800 (PST) X-Google-Smtp-Source: AMrXdXuQq/N2CJsYXy9vLGeUuLq0i0OyRXG1Sm5Hq4UoH3UqL0Iau3Y0yoF4HOfDmyKHJkO+NwmL X-Received: by 2002:a17:906:ccd2:b0:84d:45ff:d27d with SMTP id ot18-20020a170906ccd200b0084d45ffd27dmr15705442ejb.38.1673543865769; Thu, 12 Jan 2023 09:17:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673543865; cv=none; d=google.com; s=arc-20160816; b=Qv2sYOdfME2BqNJP3zdZ70iFALhNXu9DtKfr43rk/dpsgDY/AZs0dtwV2GF2ZUItih HrwXsJjdRlFq87AnrFTHVKpM6KInhCHRmdkMDYe3bBR41P1hiMj5fMPbzkhKewRy+w13 t5s7k8uPlXMMScIeAG5C0nedyHcNu2AMTH2dcSNhPw8sj5fC5QQbWmUqeDvIDpLD8Ups xO01bIEYPJ0uEI963eU2zf/T2zU5oXUDU73UcMrVFN0k0WVdVkI/QOQTWx3TMY29lPxs 0pof/z5CkWDiah30M/pAFws+Fdt8mSg6WclRRIOLK583v2Dos95g/eEEOGNgLvoqLox/ 3kQQ== 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=+QgX4AodjtmX1fzNYmiY671N7nK0y/YiEldCRYM8yy0=; b=FH2O8D3zYKC/mD6hhlWh9zBTU/aXCpI2dBnanDSuoskcNhc6hyXqFC+UTuN7Fgv35b 9Mdv1iPU5cjgrepVeurYcoqy6CsdaVXw9Wz/jzYFyGt/SJk2YyGORIbunVt1vF17rv+Y ixRgpb31r3+wdyxUgBag5J4oEA8g6kT/KZG0illekeEVjRmzkn5/h/4xmZ8slx4/Ujk+ Gf9ESmqtzvIT4qkO7rLFFGpLmsD9t5Zfpu3jQisiNpyNGjlSwl34Mzm36E8eEGK6664w 7eIQWrJ1HOEaBvXm0qjSLCr5g7bexVdXH3lbrnJBxuHNU//I5cHJ70nEOm4FIpKhBQxi AIDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=PzW1cr1x; 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 hp18-20020a1709073e1200b007b2a6aaff06si20441589ejc.50.2023.01.12.09.17.33; Thu, 12 Jan 2023 09:17:45 -0800 (PST) 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=PzW1cr1x; 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 S240754AbjALQsg (ORCPT + 52 others); Thu, 12 Jan 2023 11:48:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42542 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240081AbjALQiC (ORCPT ); Thu, 12 Jan 2023 11:38:02 -0500 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7040919C26; Thu, 12 Jan 2023 08:34:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1673541240; x=1705077240; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=VG1cQqmpplAzZSOIitVXZaHZHvnSCeprFdyL+MkxBlU=; b=PzW1cr1x9Uym/dfz6+CF7Y7u18hyE2MQcLNFD4jjsOAKJrs35ZAtyBk4 nB8gROtLIyXTCyrrVeCOiS4nOEYDBdxeFOTKu4j1B4wl9WNMYQj6mdAPg TH6ucWVrpKZrDMDIaVqkPCvfj4/nqZ8FkIIVQ1oqGsrdLICx7ei71QwRj BRhib1+p2gYw6S6NODnjINwUhVzX1xdJFOLhZZp9gD4ALZztyMA6tv/51 0+Q/oJ3lQa6N2LzfM/+fOK+GNDc/Y35hT8pDL3EpeDoKpwZwS/izAeSHR D9XrpjFdXHJZ0illRAs4V3fFpGEnpZ4PKoboXMSctMl0p9pZ50X13QHnn A==; X-IronPort-AV: E=McAfee;i="6500,9779,10588"; a="323811779" X-IronPort-AV: E=Sophos;i="5.97,211,1669104000"; d="scan'208";a="323811779" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Jan 2023 08:33:24 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10588"; a="721151716" X-IronPort-AV: E=Sophos;i="5.97,211,1669104000"; d="scan'208";a="721151716" 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; 12 Jan 2023 08:33:24 -0800 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 v11 027/113] KVM: x86/mmu: introduce config for PRIVATE KVM MMU Date: Thu, 12 Jan 2023 08:31:35 -0800 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.4 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 84d21ef8b3d2..a2db2169ea9c 100644 --- a/arch/x86/kvm/Kconfig +++ b/arch/x86/kvm/Kconfig @@ -145,4 +145,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