From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id 299D8740032 for ; Fri, 27 Oct 2023 05:43:30 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=O/9b1NHc3cj5T+AKmQTOhoxIIgwz4n6h4Y9boDuzL0w=; c=relaxed/simple; d=groups.io; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding; s=20140610; t=1698385408; v=1; b=ST6n3d2KzijlFRIYH+Faw4QYltexWxMqCV5CyMLsUGysIUzeaqnKU/RKUaInpajWQsimbFoK LN9THjKSqu4qxxIr+lD1dL/d3j0jygCPKPk52Ullk1ua+xta289WMzxpI1Ai+RxY+EAcOWovPUC TdZncD3ytdAEi78EUcvumzSE= X-Received: by 127.0.0.2 with SMTP id 6AtYYY7687511xF0wMMwuKVD; Thu, 26 Oct 2023 22:43:28 -0700 X-Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.65]) by mx.groups.io with SMTP id smtpd.web10.894.1698385395579600088 for ; Thu, 26 Oct 2023 22:43:28 -0700 X-IronPort-AV: E=McAfee;i="6600,9927,10875"; a="391587834" X-IronPort-AV: E=Sophos;i="6.03,255,1694761200"; d="scan'208";a="391587834" X-Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Oct 2023 22:43:28 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10875"; a="763089432" X-IronPort-AV: E=Sophos;i="6.03,255,1694761200"; d="scan'208";a="763089432" X-Received: from shwdeopenlab702.ccr.corp.intel.com ([10.239.55.43]) by fmsmga007-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Oct 2023 22:43:26 -0700 From: "duntan" To: devel@edk2.groups.io Cc: Michael D Kinney , Liming Gao , Zhiguang Liu , Ray Ni Subject: [edk2-devel] [PATCH 4/7] MdePkg:support Tdx and sev in BaseIoLibIntrinsic Date: Fri, 27 Oct 2023 13:42:57 +0800 Message-Id: <20231027054300.1382-5-dun.tan@intel.com> In-Reply-To: <20231027054300.1382-1-dun.tan@intel.com> References: <20231027054300.1382-1-dun.tan@intel.com> MIME-Version: 1.0 Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,dun.tan@intel.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: k5BzdKpshaGo7dbZEpWGa4zvx7686176AA= Content-Transfer-Encoding: 8bit X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=ST6n3d2K; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=intel.com (policy=none); spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io Change IA32 and X64 arch source files for BaseIoLibIntrinsic to support Tdx and sev. Use IoFifoRead/Write API in IoLibFifo.c and the IoLibInternalTdx.c instead of IoFifoSev.nasm for BaseIoLibIntrinsic. With this change, BaseIoLibIntrinsic can also support Tdx guest and sev. Then the assembly code and instance for BaseIoLibIntrinsicSev can be removed. Signed-off-by: Dun Tan Cc: Michael D Kinney Cc: Liming Gao Cc: Zhiguang Liu Cc: Ray Ni --- MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf b/MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf index aeb072ee95..e1a2e1eed8 100644 --- a/MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf +++ b/MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf @@ -7,7 +7,7 @@ # ASSERT(). For ARM, AARCH64, RISCV64 and LoongArch, this I/O library only provides # non I/O read and write. # -# Copyright (c) 2007 - 2021, Intel Corporation. All rights reserved.
+# Copyright (c) 2007 - 2023, Intel Corporation. All rights reserved.
# Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.
# Copyright (c) 2017, AMD Incorporated. All rights reserved.
# Portions Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All rights reserved.
@@ -35,24 +35,26 @@ IoLibMmioBuffer.c BaseIoLibIntrinsicInternal.h IoHighLevel.c - IoLibInternalTdxNull.c IoLibTdx.h [Sources.IA32] IoLibGcc.c | GCC IoLibMsc.c | MSFT IoLib.c - Ia32/IoFifo.nasm + IoLibFifo.c + IoLibInternalTdxNull.c [Sources.X64] IoLibGcc.c | GCC IoLibMsc.c | MSFT IoLib.c - X64/IoFifo.nasm + IoLibFifo.c + IoLibInternalTdx.c [Sources.EBC] IoLibEbc.c IoLib.c + IoLibInternalTdxNull.c [Sources.ARM] IoLibNoIo.c @@ -74,3 +76,7 @@ BaseLib RegisterFilterLib +[LibraryClasses.X64] + TdxLib + CcProbeLib + -- 2.31.1.windows.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#110185): https://edk2.groups.io/g/devel/message/110185 Mute This Topic: https://groups.io/mt/102215665/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-