Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4803013iob; Mon, 9 May 2022 01:53:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxw9bU/2OFnc7fcGrZxXxkei3/1zcb5DsbJlmqBfrtfv4FaHHa/XDSYNU2yeVRofO47J3lT X-Received: by 2002:a17:90a:db51:b0:1dc:9da2:793b with SMTP id u17-20020a17090adb5100b001dc9da2793bmr25153532pjx.77.1652086419852; Mon, 09 May 2022 01:53:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652086419; cv=none; d=google.com; s=arc-20160816; b=eReqGB3o52tIGVCcB835+ojh9wMYa8cwaPjwztyZ6jyEmugLiJaGzH40fXkqvJSE5k 1B7vnVDozR4vDfqgiFEhcfcZDNGNnXhfxc2Rm2ZQlnrhvVCZHvcAYqig+VW1cOYEtDIV 91ZSXpNyCFgO3qbIIu3FA1Jt459dOvmtDL5Y0DKEnCSNbgPt5F3eKiqin36Un8Kd3FH6 twxvcKgJonw/KwOtnvYNgWGMsuPfkaIClkmpq4DdORQjTewKXEIGl+qS6IAUq91mga9E QwFQsJvz/ae/f3qCtlrv3VO7VQPf2235+HtH148KImCiwGMZB4a2kcsT2GVaKnTnQckI /ZXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=FBlgRUWl4OOlEEtd3q3y/OT0m0LFsg9AOgmnhkCH7ew=; b=yYI0JXs91WY3pnzkOFKlZ1jqtAkyAWIwQIW/rnvAA/XcDhpD+d9940InrYopE9QuA9 bs+rvXm7O+Wc65TA8LQiqugmLRIKQSsWBxUC2BD28ZoP8tKKikHOJlr2BI1FfYBGr5LS j4kkVDHR53sHQhDKJTAvBvV3bIgXn+Glo+ctqqaewO0PKn27Y1Q1UXW0H1oib2ZqREOh MX/f5EMhx6s4oyOZ9O/KfkrxK2EayR2VZThuvgSxl4chv6/VrUZUpWtr12oYdoL9hcGU Q836H7ssCnDymiNlFquYdx6/kWOUfHGDxSCfrUs+d2M6a8BRvDU7V1/QMoQdN6EYu3/I DstQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=nCNPKcBA; 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 bg18-20020a056a02011200b003c653112866si10522799pgb.796.2022.05.09.01.53.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 May 2022 01:53:39 -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=nCNPKcBA; 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 56197179424; Mon, 9 May 2022 01:37:35 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1390308AbiEFJAl (ORCPT + 99 others); Fri, 6 May 2022 05:00:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50500 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232541AbiEFJAj (ORCPT ); Fri, 6 May 2022 05:00:39 -0400 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1E5175DD02; Fri, 6 May 2022 01:56:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1651827418; x=1683363418; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=pzSCX+ORidCZk4+V2sVaV0IkzFQzmKkYiqwgGamCDd8=; b=nCNPKcBAS2/SY7Sl4O0Na/GyAVqRUWVlK5933iVhMRsnJbvbK3KiBzmv oRU7kUA0r4kUdlkq9XR6/jJk6DzE16SnJHJFMMprzWu9BUx2UtfL6FtWa dY15M1ZU/Tnp4IBvaTtrskmQgqZjq0kNrCJPiaamtidRdvVI5HNqJyNcc zfxdpWuBPZ+Vn5yuEWlxg7Bdch9PTvMCKrQSt7tLfFhwRJ3ooPGW/R7TH w2fv7nkI7xVQ62W1ReVPd2iRVZNSdjsu7+CgyrLaDXn7rKFZQ/Nwxq1vg nuAx+xPAOaNX/Ja1VFwA+rbTPs9Irc7sja5Gm2vlPj2IsB0zX4hkmR8H4 w==; X-IronPort-AV: E=McAfee;i="6400,9594,10338"; a="293608062" X-IronPort-AV: E=Sophos;i="5.91,203,1647327600"; d="scan'208";a="293608062" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 May 2022 01:56:57 -0700 X-IronPort-AV: E=Sophos;i="5.91,203,1647327600"; d="scan'208";a="585868905" Received: from xiaoyaol-hp-g830.ccr.corp.intel.com (HELO [10.249.169.36]) ([10.249.169.36]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 May 2022 01:56:55 -0700 Message-ID: <16632b27-7a0d-887b-c86e-9e1673840f55@intel.com> Date: Fri, 6 May 2022 16:56:52 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Firefox/91.0 Thunderbird/91.8.1 Subject: Re: [RFC PATCH v6 017/104] KVM: TDX: Add C wrapper functions for SEAMCALLs to the TDX module Content-Language: en-US To: isaku.yamahata@intel.com, kvm@vger.kernel.org, linux-kernel@vger.kernel.org Cc: isaku.yamahata@gmail.com, Paolo Bonzini , erdemaktas@google.com, Sean Christopherson , Sagi Shahar References: From: Xiaoyao Li In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, HK_RANDOM_FROM,MAILING_LIST_MULTI,NICE_REPLY_A,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 On 5/6/2022 2:14 AM, isaku.yamahata@intel.com wrote: > diff --git a/arch/x86/virt/vmx/tdx/seamcall.S b/arch/x86/virt/vmx/tdx/seamcall.S > index 8df7a16f7685..b4fc8182e1cf 100644 > --- a/arch/x86/virt/vmx/tdx/seamcall.S > +++ b/arch/x86/virt/vmx/tdx/seamcall.S > @@ -50,3 +50,4 @@ SYM_FUNC_START(__seamcall) > FRAME_END > ret > SYM_FUNC_END(__seamcall) > +EXPORT_SYMBOL_GPL(__seamcall) It cannot compile, we need #include