From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by mx.groups.io with SMTP id smtpd.web10.6674.1670212033176836758 for ; Sun, 04 Dec 2022 19:47:13 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=nvGlAg2y; spf=pass (domain: intel.com, ip: 192.55.52.88, mailfrom: dun.tan@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1670212033; x=1701748033; h=from:to:subject:date:message-id:references:in-reply-to: content-transfer-encoding:mime-version; bh=tnUAuyK8DU6uz6ZysqBt+A1MGuvgDUESa3zq5yfBB7Y=; b=nvGlAg2ycpneSmZmpVD4Z0lF3VINB5GUT4/KsM4bOBOKyoGvlhLvjY8I 1yBb5ZRA8UtqWk0Yse/7xftFXQITtHA9IMVNk7wbsWz3lCp0Z61xWCw2T k1IrejmWp1t+ZYzu8XwB1edKQbwQ8L4ij8IgLDdtIiNEykdnFrCiinR+F cKeTweiu8Y/fpPCtrqHO/W8sz+kPR73FVZHC6iiE7D1twbN3rH2qrKw5d LuhneGaFrqadLXHOfHG/NsAMfoYW9ZizRr2cET1Cu2/tuL/+RpZUt3MGr LtfluBBSVLf9otcdEkTwXk6Q9fOZgBQdr6WM0iNO8P8QPbjkVhabjO1cQ w==; X-IronPort-AV: E=McAfee;i="6500,9779,10551"; a="343242750" X-IronPort-AV: E=Sophos;i="5.96,218,1665471600"; d="scan'208";a="343242750" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Dec 2022 19:47:12 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10551"; a="974531879" X-IronPort-AV: E=Sophos;i="5.96,218,1665471600"; d="scan'208";a="974531879" Received: from orsmsx603.amr.corp.intel.com ([10.22.229.16]) by fmsmga005.fm.intel.com with ESMTP; 04 Dec 2022 19:47:10 -0800 Received: from orsmsx611.amr.corp.intel.com (10.22.229.24) 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; Sun, 4 Dec 2022 19:47:08 -0800 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) 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, 4 Dec 2022 19:47:08 -0800 Received: from orsedg603.ED.cps.intel.com (10.7.248.4) by orsmsx610.amr.corp.intel.com (10.22.229.23) 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, 4 Dec 2022 19:47:08 -0800 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (104.47.59.170) by edgegateway.intel.com (134.134.137.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.16; Sun, 4 Dec 2022 19:47:08 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DJEla2eTZq9121r4+SWPFNmOm20HFwwmBL/b1QBW6GPuEcbyLV3Cnur+tVnGHL8C5cr50Odgrtfxw00H/5ofUw40wlA/i/P5Xg9DlVRRR2LD/Ut2Bl6d6kQUERJMux5RbL77D+fAxD5EalI8vy/r6ClPrSRvF8x9vdA7ef1U63iSsGHBml6a/Ldu7MS3oW7HWcXsLkUIjhA75l/GZymFjiVs9mj15N4ELs3zQ+CFSpxU36w6ui+cPU8KxTzH1XdJdb+Z8525yThvZxegXJIRWk/WaCBO/XWKelziu+YmcZU2fd1wR0fu8X4ZCb6l7oUN6TwGSeT47bXLRU4P7zBwOw== 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=kFRFFishY3mLz6jnQ/uOLgKs+Yyek26e0ttDyuTmECM=; b=Do46L/XuNlG+k6RgrGyjBy53uvLzySODfyWyEBRXSW4Z0J+TQrHS2uo7sHweVXyslwkqTKnZ5mYAVPb90t4SvHE8VP9b2IE5N2MEsXT3F/gUkWT4zIHXftHBIv/azl2LeR8mj6XpflKrMt0idwFhc2JEMMqFIWSAO73rwU0cLtUR5qP7OWgeEtPNCIXvCUu4tz7knycBXJqd7KsdpWquq2rjB70xScBTHap8Y1W8phmUrFtqhPQzs1tVJhywRCYVNlfr5MnzZ6zdwgC0FXMkAexQnSxP1Zi/WrzwZ5BLezGkx5tsSYsQeyBkrsRLx2jTa5gCzFIx/5itNVmfdN39zw== 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 BN9PR11MB5483.namprd11.prod.outlook.com (2603:10b6:408:104::10) by DM4PR11MB5373.namprd11.prod.outlook.com (2603:10b6:5:394::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5880.8; Mon, 5 Dec 2022 03:47:06 +0000 Received: from BN9PR11MB5483.namprd11.prod.outlook.com ([fe80::c945:6fc3:ca84:dd9b]) by BN9PR11MB5483.namprd11.prod.outlook.com ([fe80::c945:6fc3:ca84:dd9b%9]) with mapi id 15.20.5880.014; Mon, 5 Dec 2022 03:47:06 +0000 From: "duntan" To: "devel@edk2.groups.io" , "Lou, Yun" Subject: Re: [edk2-devel] [PATCH v1 1/2] UefiCpuPkg/Test: Move EfiMpServiceProtocol UT in a separate function Thread-Topic: [edk2-devel] [PATCH v1 1/2] UefiCpuPkg/Test: Move EfiMpServiceProtocol UT in a separate function Thread-Index: AQHY//4Ght7dxIW93keoWRdZLVFcuq5et6Lg Date: Mon, 5 Dec 2022 03:47:06 +0000 Message-ID: References: <20221124121158.2812-1-yun.lou@intel.com> In-Reply-To: <20221124121158.2812-1-yun.lou@intel.com> Accept-Language: zh-CN, en-US 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: BN9PR11MB5483:EE_|DM4PR11MB5373:EE_ x-ms-office365-filtering-correlation-id: 541d415e-92b7-465a-01be-08dad67360e2 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: TajjikQe8cRffjNo5e7v6NRPW/jwfMQNjvbw/UJn44tcOT0Db/JHT+eDetHOyx2EQrvE19fvhAiHV0RMOYGNQZ5uLe7zYc3+Tz9nBKHSm+nq47iJI4Imw/sb3Q6Sm2WrtuUJhn6Q7K5zgMPiAUregY0oZVZebiOCFBXEDV99kCFnphRDsHEdlMpyhJxcK66pA6z8uMw3QXpgiVMt/lKgzj+fIefW7QoNekw/Xl7ZI1UE8m40pSHs0YaoAnoHa9bQYYDoAARHAD95JYS43mxaaxAZSdkEnGMHf55V5lS/o4cLKxVL4+4v5DPf1KWyXVjAL/vOM4ZmU/ovYj20TSSFTHPIbgigt5MyuXlcQZ31idBFc4lTAokqTmkKyG1asopkUTCerPjNmA1P9rYEvOmHxj6fj0rTtD18qJm5ITcCCo56ZrfptyeccpP8WVs7uvpoVjCU0FqVJcOoCKj6OJbQtteGXbL2/Kp89CLTODwwBImzNc6DST2q8WrVu43VSZZnVg88qhmSSggksAc4wEKGK0/pk8N4qIgCNaZ5uLrZ++GQS28UygQ+669VrGm4TWO5BW5S+WSNDFegU9MqilRGJ/nI4rcbOcBWVTPae5XWr11bQydSZ73NOB7qxlpQRGVdEi8dh1eG+6x0OQE+xEGU1eVxiyuddmn9o6i/SPR2F730asX5PuhSLzUeacKtZjV9jPC4fMfGpIjcrxovAKSZqLBG7jWLGs55RK0y5UfatMqfllmv7XN3lyxQgE2qJPpahP+nFrumha95dG3BKw37Ng== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BN9PR11MB5483.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(6029001)(136003)(396003)(376002)(39860400002)(366004)(346002)(451199015)(55016003)(71200400001)(38070700005)(9686003)(110136005)(86362001)(6506007)(53546011)(7696005)(966005)(5660300002)(478600001)(33656002)(6636002)(41300700001)(52536014)(316002)(66476007)(8676002)(8936002)(2906002)(19627235002)(66446008)(66556008)(64756008)(66946007)(76116006)(82960400001)(38100700002)(26005)(122000001)(186003)(83380400001)(66899015);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?HQg/yCuENppiYziud6hsSjkixXyjQ4Ufvu82BmBLxbALXa6k5JFlRmF7RghW?= =?us-ascii?Q?Qr2IQSf/j3G7hlQwFezKANzFOnYa/Hwrz7GIeP0yUFeqquH9fpUS4K0bDetl?= =?us-ascii?Q?2WHXBQ8lO/yaH/2ssLIIMXP1tpK3xhlyNtxA3u1A542PO+Fc+WYYXPMmLcQl?= =?us-ascii?Q?f2fvUwVKpBGlS9JtqKkpzwU/W8xz+MitAkJIK4AtvprR5SOqXAquEkx8TvC8?= =?us-ascii?Q?ytM+JYxYHj+RmCUAXLJ8hzGPCEiOfTJrtl9eAYhbK0UN0fF+KCp0jklxFQAM?= =?us-ascii?Q?PRAghDCFKg7fcxMlq1LskI3eJ+QLygth8aYv/n9jY68mVayRsjB0/wA1UV2f?= =?us-ascii?Q?ee+ICeYVvd02sWEVop8EajEgjIWRalCznTZCREWkNF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xRJ5XDmFHzQGKGhfUWJfL5dTwDn53PhAzy0MLzgSYk8EfFk1TOOHke/WI8?= =?us-ascii?Q?lAs41VYN9B6llsqvFY9WLND3m7GDtdTRjz6dGjCfmVwnhBp5eM3ZqugX/sO2?= =?us-ascii?Q?MxChFfQ95lnOc5QjCB1KNVwV53JX0jLFli4H5tkmim+Ooi/Dta3p1pxmkc0D?= =?us-ascii?Q?sp4nXA9MHqfdSKsQrsJSx8O+YI1PvEFSf3ZI4d2vSWV62JzzAH7Xzns9SOBp?= =?us-ascii?Q?OjFxHsCwUEGAlg1+HS/3Dkxg0eXzVMh8rxENL8EBTd2pnC/86wfxTVptR87/?= =?us-ascii?Q?w7qDKR/l4/sQLdigS6g=3D?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BN9PR11MB5483.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 541d415e-92b7-465a-01be-08dad67360e2 X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Dec 2022 03:47:06.0729 (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: t8iqDK2dMzUZINXtY2RUqZmuxWLB6rBnlAslOR+VI4hrIwrVlR0NkG2lcuwleVmDVe+e5h6wltZH7nkkfOIgfg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR11MB5373 Return-Path: dun.tan@intel.com X-OriginatorOrg: intel.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Dun Tan -----Original Message----- From: devel@edk2.groups.io On Behalf Of Jason Lou Sent: Thursday, November 24, 2022 8:12 PM To: devel@edk2.groups.io Cc: Lou, Yun ; Ni, Ray ; Dong, Eric ; Laszlo Ersek ; Kumar, Rahul R Subject: [edk2-devel] [PATCH v1 1/2] UefiCpuPkg/Test: Move EfiMpServiceProt= ocol UT in a separate function From: Jason Lou Move the implementation of EfiMpServiceProtocol unit tests in a separate fu= nction in preparation for developing the UEFI application and dynamic comma= nd for the same unit tests. Signed-off-by: Jason Lou Reviewed-by: Ray Ni Cc: Eric Dong Cc: Laszlo Ersek Cc: Rahul Kumar --- UefiCpuPkg/Test/UnitTest/EfiMpServicesPpiProtocol/EfiMpServiceProtocolUnit= Test.c | 30 +++++++++++++++----- UefiCpuPkg/Test/UnitTest/EfiMpServicesPpi= Protocol/EfiMpServicesUnitTestCommom.h | 2 +- 2 files changed, 24 insertions(+), 8 deletions(-) diff --git a/UefiCpuPkg/Test/UnitTest/EfiMpServicesPpiProtocol/EfiMpService= ProtocolUnitTest.c b/UefiCpuPkg/Test/UnitTest/EfiMpServicesPpiProtocol/EfiM= pServiceProtocolUnitTest.c index 57f8ba3c06..5fe6369960 100644 --- a/UefiCpuPkg/Test/UnitTest/EfiMpServicesPpiProtocol/EfiMpServiceProtoco= lUnitTest.c +++ b/UefiCpuPkg/Test/UnitTest/EfiMpServicesPpiProtocol/EfiMpServiceProt +++ ocolUnitTest.c @@ -187,18 +187,16 @@ MpServicesUnitTestWhoAmI ( } /**- Standard DXE driver or UEFI application entry point for unit test= execution from DXE or UEFI Shell.- Initialize the unit test framework, su= ite, and unit tests for the EfiMpServiceProtocol and run the unit test.+ I= nitialize the unit test framework, suite and unit tests for the EfiMpServic= eProtocol and run the unit tests. - @param[in] ImageHandle The firmwar= e allocated handle for the EFI image.- @param[in] SystemTable A pointe= r to the EFI System Table.+ @retval EFI_SUCCESS Initialize the unit = test framework, suite, unit tests and run the unit tests successfully.+ @r= etval Others Initialize the unit test framework, suite, unit tes= ts or run the unit tests unsuccessfully. **/ EFI_STATUS EFIAPI-DxeEntryPoi= nt (- IN EFI_HANDLE ImageHandle,- IN EFI_SYSTEM_TABLE *SystemTabl= e+EfiMpServiceProtocolUnitTest (+ VOID ) { EFI_STATUS = Status;@@ -242,3 +240,21 @@ EXIT: return Status; }++/**+ Standard DXE driver or UEFI application entry p= oint for unit test execution from DXE or UEFI Shell.+ Initialize the unit = test framework, suite, and unit tests for the EfiMpServiceProtocol and run = the unit test.++ @param[in] ImageHandle The firmware allocated handle = for the EFI image.+ @param[in] SystemTable A pointer to the EFI System= Table.++**/+EFI_STATUS+EFIAPI+DxeEntryPoint (+ IN EFI_HANDLE Image= Handle,+ IN EFI_SYSTEM_TABLE *SystemTable+ )+{+ return EfiMpServiceProt= ocolUnitTest ();+}diff --git a/UefiCpuPkg/Test/UnitTest/EfiMpServicesPpiPro= tocol/EfiMpServicesUnitTestCommom.h b/UefiCpuPkg/Test/UnitTest/EfiMpService= sPpiProtocol/EfiMpServicesUnitTestCommom.h index abbbd2faba..d2b1633b4d 100644 --- a/UefiCpuPkg/Test/UnitTest/EfiMpServicesPpiProtocol/EfiMpServicesUnitTe= stCommom.h +++ b/UefiCpuPkg/Test/UnitTest/EfiMpServicesPpiProtocol/EfiMpServicesUni +++ tTestCommom.h @@ -1,5 +1,5 @@ /** @file- Common header file for EfiMpServiceProtocolUnitTest DXE driver= .+ Common header file for EdkiiPeiMpServices2Ppi and EfiMpServiceProtocol = unit test. Copyright (c) 2022, Intel Corporation. All rights reserved. --=20 2.28.0.windows.1 -=3D-=3D-=3D-=3D-=3D-=3D Groups.io Links: You receive all messages sent to this group. View/Reply Online (#96613): https://edk2.groups.io/g/devel/message/96613 Mute This Topic: https://groups.io/mt/95236455/6168883 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [dun.tan@intel.com] -=3D-= =3D-=3D-=3D-=3D-=3D