From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mx.groups.io with SMTP id smtpd.web11.37592.1670830468502233992 for ; Sun, 11 Dec 2022 23:34:28 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=eYv4Z/b1; spf=pass (domain: intel.com, ip: 192.55.52.43, mailfrom: zhiguang.liu@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1670830468; x=1702366468; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=vtKZcf8Um4bZoLKTXSmtIAk6tMJNDQGaTm56tajjJ/M=; b=eYv4Z/b1QcokZQ43FxAw6E7QBi4BHSN/fsaZeVLQkLluzUyaUlFIcT8s L0HWpNDdv71Uq5btj4BXz2LjSonB8H3+2u5Oaxv3FtYGD174nWXH9ndum +7N/bgukUjUCSnff3znaurvgo3pmsBI9SapiAKZHg24T6DIgnTR51VZKA uo3BvSorY1R5PebDK1rlh7R790BnYAl1vDb/R270/XW7ypOGsBXmO8q5g fLdSv5x2ReDgDkSRan+KlE8p8LpFx1h36hLXfeQ6/vnYwbsx3wvtulJQJ FKWuIJ2Tks9uz1bEBQm0MYPNP2z8yJrwy/XnIvtoHIunN/4aSlOpfg3uj A==; X-IronPort-AV: E=McAfee;i="6500,9779,10558"; a="404046379" X-IronPort-AV: E=Sophos;i="5.96,237,1665471600"; d="scan'208";a="404046379" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Dec 2022 23:34:13 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10558"; a="754835872" X-IronPort-AV: E=Sophos;i="5.96,237,1665471600"; d="scan'208";a="754835872" Received: from orsmsx601.amr.corp.intel.com ([10.22.229.14]) by fmsmga002.fm.intel.com with ESMTP; 11 Dec 2022 23:34:12 -0800 Received: from orsmsx611.amr.corp.intel.com (10.22.229.24) by ORSMSX601.amr.corp.intel.com (10.22.229.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.16; Sun, 11 Dec 2022 23:34:12 -0800 Received: from orsmsx603.amr.corp.intel.com (10.22.229.16) by ORSMSX611.amr.corp.intel.com (10.22.229.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.16; Sun, 11 Dec 2022 23:34:12 -0800 Received: from ORSEDG601.ED.cps.intel.com (10.7.248.6) by orsmsx603.amr.corp.intel.com (10.22.229.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.16 via Frontend Transport; Sun, 11 Dec 2022 23:34:12 -0800 Received: from NAM02-SN1-obe.outbound.protection.outlook.com (104.47.57.45) by edgegateway.intel.com (134.134.137.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.16; Sun, 11 Dec 2022 23:34:11 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gjNEWdhNT+qWzgSdhj7PlSdXZh9WkmiJUsIYhwy6G7zxSNvADL1+b2V/7FyjkPr20cagfUGCjDWLSmdOsgUJ1Y4f/IWgyEsimgc+z8zzw6bLjcRdQB2QvwyJDcZK9jJv8W1OCPilzdSKF/NZW0aPETbqB54IW3jXZrxBrLy+0FXypgLEq/ezpcL19yZ7CIK02mUCl8rDMcV+2+ooRmhjW6A1ezu7r5aigatsM9pDnhmjsKVxCrd4VxPStRwzXz8OLnLfbyEWhh0Obe9diMS0efdgAHHRdmrTx+1dOc3u8Ql1hw9CYfw1XwCfWmOB6e03kvtmt3Unc5nesPf6LvOIOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=srE9raA9t+eDiteEQdG3BY4bxcqMFd4Eh32lGD3L1+0=; b=erZ4aKaqNk419Myludib8k/cHPd+Y81rxAR7tmvGxBjKZfPy/FB9PwGkDB1qIrwSg44rMVHmYxlR0y4mNDWW1+aST1GoGZd2yuTdbi/7hJf6x4QdcsAy9kpv71L8Cgo2/fkXeNURIoBuwGR3o4vOikezTgpsPWtEfvPj3B3d6MaTae/q9r1JBu3P4YGud9qzd7mYpIxr4n2n+wpcqQRUY+ecSoYM2AkLs9YJo3iIFU4mQ2wMLrwYn6jrL9LR/5EGhC2KFMwJtPZu+kt3MRCHivTNpuIKPr7PKhy0jQ9wp2nAOa0R9ZprRw1uYzeJHurZRb9i6RQPw85vxdpDk+kzXw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Received: from PH0PR11MB5048.namprd11.prod.outlook.com (2603:10b6:510:3d::14) by IA0PR11MB7813.namprd11.prod.outlook.com (2603:10b6:208:402::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5880.19; Mon, 12 Dec 2022 07:34:04 +0000 Received: from PH0PR11MB5048.namprd11.prod.outlook.com ([fe80::f382:d721:8364:480d]) by PH0PR11MB5048.namprd11.prod.outlook.com ([fe80::f382:d721:8364:480d%2]) with mapi id 15.20.5880.019; Mon, 12 Dec 2022 07:34:04 +0000 From: "Zhiguang Liu" To: "devel@edk2.groups.io" , "Liu, Zhiguang" , "Gao, Liming" , "Kinney, Michael D" CC: "Ni, Ray" Subject: Re: [edk2-devel] [PATCH v2] MdePkg/UnitTestHostBaseLib: Remove HOST_APPLICATION limitation Thread-Topic: [edk2-devel] [PATCH v2] MdePkg/UnitTestHostBaseLib: Remove HOST_APPLICATION limitation Thread-Index: AQHZCdxx4LQYieecukmIRCXNTU/3SK5p5ECw Date: Mon, 12 Dec 2022 07:34:04 +0000 Message-ID: References: <172E5F0FD36A90C2.5063@groups.io> In-Reply-To: <172E5F0FD36A90C2.5063@groups.io> Accept-Language: en-US, zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: PH0PR11MB5048:EE_|IA0PR11MB7813:EE_ x-ms-office365-filtering-correlation-id: d1a351f8-8c55-40da-c32e-08dadc133f17 x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: VXKp1ofjEnSZ/t0VieKxGi+Lr/PmaXBFX/+rziG9R63zM8bITtk9f3eRcTWybmEWrKObrMjU8Q2PnRIPNdwOZJYEUaGd/we4F3I7oEbH38otmxb4OwzH0n8zEcbR7hKAwkrmshJ/EiMVCFlcBhVmYjyf25z0l5WdnDV1eqhJMs0skriuEqyrUOqwy0hBBFesCkgINj7jvWCjV+aNqYbxvHuA4vRYAD3cC4ZM+NfWv5kGcXafwcwPEzS6sH4+7tBYpPU8X7QDW/htlc/+n1FuLHxuaBuSDy8V95rY3fajRa0YXQe3mm7+8zkeH//KWaJFK9ftsWlC7eT0UHINaJBfbpF8nZx1Lpr6xZE3z8IOF1wlH5OOd34/yLVjwA3T68X4CJ1iaiDD4BMxGGfcRTXJ28LfzUh8fFUEnQCWBAkA8K6l/JMWrZHvbJTrqacN1f2LZVc+9kgr0pocJhv/vHobPs31wrlwPOrpd89VukeLWw96S9T5fIWDG2MRMTY5uWm/qdY/fQa1WTBK66XS2lcZWqwCiB43M8OU/gntinbQfCc2eVzsHNfvLO73B7C72sbBXwYAUNV3/7Jl4JWvelu/NpwfyTvwN6/IuMcUQvSJ2a+VSL74SgzClxRaVydsEOqDnZMpzq7aa0cpGsjsNTJxjlG9A3djimvc0dSBxxhUuwUgF3YfnCiOHorcf26L6LAGRiW6uXV3blzB4Kx8ivOi2VQNQDC1AzOnZjphrhVzwb3OIlQnoiXf7RtAoa6qystS960C2MRhVxCBTzGoXIWn4wZq8dXlSpHT/2A8aK1tSqM= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PH0PR11MB5048.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(376002)(366004)(396003)(39860400002)(346002)(136003)(451199015)(33656002)(86362001)(55016003)(966005)(83380400001)(6506007)(316002)(7696005)(6636002)(186003)(9686003)(107886003)(53546011)(110136005)(26005)(71200400001)(478600001)(38070700005)(41300700001)(8936002)(2906002)(52536014)(5660300002)(4326008)(66476007)(8676002)(64756008)(66946007)(66556008)(122000001)(76116006)(82960400001)(66446008)(38100700002)(66899015)(213903007);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?T3xPYtqwPIS+89CQVLkPp5fPhLHaue85RncalQatuT3B+QyA0GPd3mwZcPzX?= =?us-ascii?Q?aIqHJoErotKHqIxBpWJDRw1V7T7NFr2tNnKN13ELjf1F+DBkYtFNqoigSVSg?= =?us-ascii?Q?nfQTvDPd6HE51av98y2ZW86aVohEkuXg4+EagwbyuoVqSxBKK8FeOyUEql4e?= =?us-ascii?Q?sxWegPwQN3TQDzo2JCoc7EeuFaQCl8GEXm5PssEyYSgCCrtYymnyxPcSR7fn?= =?us-ascii?Q?if++4BHLX0x1rM/VZ0skgBOH3B2E9rsAtWu5efVPV/4a8WrAbPOgm7E9xbiq?= =?us-ascii?Q?Sb2dM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RxJLdrNtQONkpfN?= =?us-ascii?Q?ttNbCmapxfi23s57YKFxeiQI2MuaDKdQ99ggirGPwN3+2K/zXhnwrk0LbquA?= =?us-ascii?Q?hp0Vp91aqmaeLp+9Mhi06cMcj4yTXH11PuvqMdMpEJ+oYcIvfPCFIOVVt6pR?= =?us-ascii?Q?K4Tql2g01STvcaV6bpzec935F/7N+swj9f+2uS8Qd8ukoIDasKkIHpbush9A?= =?us-ascii?Q?zFjb67nwISD4KXBwVKxgsF1K4s7cZykZEC+b5A0gUk1nmlJpzRlGwLRWQgks?= =?us-ascii?Q?M81PVLotbBLjtx7FNU4HcJDNJmJUgm379bk4dYaqvg9O5RK2Hq7OSoj4rTNx?= =?us-ascii?Q?YdqhoLP5fx7PiYtne+FgbBXnPDJF0+t7Sc9T6huZ8gavJAuIj+XvNTkZIxSA?= =?us-ascii?Q?kNAIIwu3bogm4mCi/EUuan434mn3tkMQTWurTXPn?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: PH0PR11MB5048.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: d1a351f8-8c55-40da-c32e-08dadc133f17 X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Dec 2022 07:34:04.7045 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: /KqkdNPZ8hyAjIOIpwfxuf44YppH0aOu8RSy1X7qqx+EejJUK2npd2uv/a9SKvSUz1cFbtRbI1o/dNswwDOu8w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA0PR11MB7813 Return-Path: zhiguang.liu@intel.com X-OriginatorOrg: intel.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi Liming and Mike, Could you help review this patch? Thanks Zhiguang > -----Original Message----- > From: devel@edk2.groups.io On Behalf Of > Zhiguang Liu > Sent: Wednesday, December 7, 2022 9:37 AM > To: devel@edk2.groups.io > Cc: Liu, Zhiguang ; Kinney, Michael D > ; Gao, Liming ; > Ni, Ray > Subject: [edk2-devel] [PATCH v2] MdePkg/UnitTestHostBaseLib: Remove > HOST_APPLICATION limitation >=20 > Remove HOST_APPLICATION limitation for UnitTestHostBaseLib, so that this > library can be used as BaseLib by Emulator. > Also, add some missing files >=20 > Cc: Michael D Kinney > Cc: Liming Gao > Signed-off-by: Ray Ni > Signed-off-by: Zhiguang Liu > --- > MdePkg/Library/BaseLib/UnitTestHostBaseLib.inf | 9 ++++++--- > 1 file changed, 6 insertions(+), 3 deletions(-) >=20 > diff --git a/MdePkg/Library/BaseLib/UnitTestHostBaseLib.inf > b/MdePkg/Library/BaseLib/UnitTestHostBaseLib.inf > index 09a610c31c..12a5cdcc0a 100644 > --- a/MdePkg/Library/BaseLib/UnitTestHostBaseLib.inf > +++ b/MdePkg/Library/BaseLib/UnitTestHostBaseLib.inf > @@ -1,7 +1,8 @@ > ## @file > -# Base Library implementation for use with host based unit tests. > +# Base Library implementation for use with host based unit tests, and > +# can also be used by emulation platforms such as EmulatorPkg. > # > -# Copyright (c) 2007 - 2021, Intel Corporation. All rights reserved. > +# Copyright (c) 2007 - 2022, Intel Corporation. All rights > +reserved.
> # Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved. # > Portions copyright (c) 2011 - 2013, ARM Ltd. All rights reserved.
# > Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All rights > reserved.
@@ -18,7 +19,7 @@ > FILE_GUID =3D 9555A0D3-09BA-46C4-A51A-45198E3C765= E > MODULE_TYPE =3D BASE > VERSION_STRING =3D 1.1 > - LIBRARY_CLASS =3D BaseLib|HOST_APPLICATION > + LIBRARY_CLASS =3D BaseLib > LIBRARY_CLASS =3D UnitTestHostBaseLib|HOST_APPLICATIO= N >=20 > # > @@ -128,6 +129,7 @@ > X86RdRand.c > X86SpeculationBarrier.c > X86UnitTestHost.c > + IntelTdxNull.c >=20 > [Sources.X64] > X64/LongJump.nasm > @@ -168,6 +170,7 @@ > X64/RdRand.nasm > ChkStkGcc.c | GCC > X86UnitTestHost.c > + IntelTdxNull.c >=20 > [Sources.EBC] > Ebc/CpuBreakpoint.c > -- > 2.31.1.windows.1 >=20 >=20 >=20 >=20 >=20