From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.3 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id EE33AC433B4 for ; Wed, 12 May 2021 14:10:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id BCA9761419 for ; Wed, 12 May 2021 14:10:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231185AbhELOMC (ORCPT ); Wed, 12 May 2021 10:12:02 -0400 Received: from mga07.intel.com ([134.134.136.100]:7585 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230362AbhELOMB (ORCPT ); Wed, 12 May 2021 10:12:01 -0400 IronPort-SDR: fR0jTeeCDJ3CiXTwFbSoUTbtTB1bQIFVuWF2ymvQBMM9s1UDQEukDn5N5zsz1IOcepi/fpqAB3 gJhbieWoY80A== X-IronPort-AV: E=McAfee;i="6200,9189,9981"; a="263641632" X-IronPort-AV: E=Sophos;i="5.82,293,1613462400"; d="scan'208";a="263641632" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 May 2021 07:10:53 -0700 IronPort-SDR: pPM6Ks1tTrsh/C9IVMkbeqF8eeye6flzD/iMLsvaeRPLZpT3njUD0pnZfJSiqy+YdlCREjaexT sbOHC/GUOJRQ== X-IronPort-AV: E=Sophos;i="5.82,293,1613462400"; d="scan'208";a="625403316" Received: from shepark-mobl.amr.corp.intel.com (HELO skuppusw-mobl5.amr.corp.intel.com) ([10.209.166.42]) by fmsmga005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 May 2021 07:10:44 -0700 Subject: Re: [RFC v2 10/32] x86/tdx: Wire up KVM hypercalls To: "Kirill A. Shutemov" Cc: Dave Hansen , Peter Zijlstra , Andy Lutomirski , Dan Williams , Tony Luck , Andi Kleen , Kirill Shutemov , Kuppuswamy Sathyanarayanan , Raj Ashok , Sean Christopherson , linux-kernel@vger.kernel.org, Isaku Yamahata References: <04de6cd6549eee0b77fe3b0937c4b4b7f0e3ff2e.1619458733.git.sathyanarayanan.kuppuswamy@linux.intel.com> <20210512130004.gxiaxj6wlzcjcem5@box.shutemov.name> From: "Kuppuswamy, Sathyanarayanan" Message-ID: <25e248b2-06f7-a450-4c9f-e90e0f0be56e@linux.intel.com> Date: Wed, 12 May 2021 07:10:41 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: <20210512130004.gxiaxj6wlzcjcem5@box.shutemov.name> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/12/21 6:00 AM, Kirill A. Shutemov wrote: > This has to be compiled only for TDX+KVM. Got it. So if we want to remove the "C" file include, we will have to add #ifdef CONFIG_KVM_GUEST in Makefile. ifdef CONFIG_KVM_GUEST obj-$(CONFIG_INTEL_TDX_GUEST) += tdx-kvm.o #endif Dave, do you prefer above change over "C" file include? 25 #ifdef CONFIG_KVM_GUEST 26 #include "tdx-kvm.c" 27 #endif -- Sathyanarayanan Kuppuswamy Linux Kernel Developer