From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.groups.io with SMTP id smtpd.web11.3855.1635919765130845968 for ; Tue, 02 Nov 2021 23:09:25 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=WWRzNKqw; spf=pass (domain: redhat.com, ip: 170.10.133.124, mailfrom: kraxel@redhat.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1635919764; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=pVGAswh3XKmDzut0Su1xmQcgQjF209FSx/HK+2aZB1M=; b=WWRzNKqw/2rRTebZY8L2EPNv5GRcepZkSjTGG1nsYoFeRGyRPXF+BJPuieOW7W0TPtO/k+ 6VaezPKaW1KCCcE7rY7GA28ucYfef+yTgp6liLKgS8IgRU2MIzFvJEx5gatZgEcoTf91N1 ZqJftfgVM7ti6auRnWG4SCZM3pbc9QA= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-148-tdGRGL_xNoKAIpnU-4A9LA-1; Wed, 03 Nov 2021 02:09:19 -0400 X-MC-Unique: tdGRGL_xNoKAIpnU-4A9LA-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 5B9C2100C609; Wed, 3 Nov 2021 06:09:17 +0000 (UTC) Received: from sirius.home.kraxel.org (unknown [10.39.194.99]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 918B35C1BB; Wed, 3 Nov 2021 06:09:16 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id 5B9B71800924; Wed, 3 Nov 2021 07:09:14 +0100 (CET) Date: Wed, 3 Nov 2021 07:09:14 +0100 From: "Gerd Hoffmann" To: Min Xu Cc: devel@edk2.groups.io, Brijesh Singh , Erdem Aktas , James Bottomley , Jiewen Yao , Tom Lendacky , Eric Dong , Ray Ni , Rahul Kumar Subject: Re: [PATCH V3 14/29] UefiCpuPkg: Enable Tdx support in MpInitLib Message-ID: <20211103060914.scktdnjbfzrtu4xk@sirius.home.kraxel.org> References: <9d8a7f7da913a1062d3f01e24615bb8bdc958458.1635769996.git.min.m.xu@intel.com> MIME-Version: 1.0 In-Reply-To: <9d8a7f7da913a1062d3f01e24615bb8bdc958458.1635769996.git.min.m.xu@intel.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=kraxel@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=us-ascii Content-Disposition: inline > +++ b/UefiCpuPkg/Library/MpInitLib/X64/IntelTdcall.nasm > @@ -0,0 +1,120 @@ > +;------------------------------------------------------------------------------ > +;* > +;* Copyright (c) 2020 - 2021, Intel Corporation. All rights reserved.
> +;* SPDX-License-Identifier: BSD-2-Clause-Patent > +;* > +;* > +;------------------------------------------------------------------------------ > + > +DEFAULT REL > +SECTION .text > + > +%macro tdcall 0 > + db 0x66,0x0f,0x01,0xcc > +%endmacro Hmm, could you just use TdxLib instead of bringing your own copy of the assembler code? take care, Gerd