From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=192.55.52.151; helo=mga17.intel.com; envelope-from=eric.dong@intel.com; receiver=edk2-devel@lists.01.org Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id E3B4D211B1FB0 for ; Tue, 8 Jan 2019 21:26:41 -0800 (PST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 08 Jan 2019 21:26:41 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,456,1539673200"; d="scan'208";a="132908722" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by fmsmga002.fm.intel.com with ESMTP; 08 Jan 2019 21:26:41 -0800 Received: from fmsmsx114.amr.corp.intel.com (10.18.116.8) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.408.0; Tue, 8 Jan 2019 21:26:41 -0800 Received: from shsmsx103.ccr.corp.intel.com (10.239.4.69) by FMSMSX114.amr.corp.intel.com (10.18.116.8) with Microsoft SMTP Server (TLS) id 14.3.408.0; Tue, 8 Jan 2019 21:26:40 -0800 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.63]) by SHSMSX103.ccr.corp.intel.com ([169.254.4.150]) with mapi id 14.03.0415.000; Wed, 9 Jan 2019 13:26:38 +0800 From: "Dong, Eric" To: "Brian J. Johnson" , "Yao, Jiewen" , "Ni, Ray" , "edk2-devel@lists.01.org" CC: Laszlo Ersek , "Kinney, Michael D" , "Dong, Eric" Thread-Topic: [edk2] [Patch 1/3] UefiCpuPkg/RegisterCpuFeaturesLib: Avoid AP calls PeiService. Thread-Index: AQHUmAGX/fDvKfBfyEu9xGF40WkoqqWGTfKAgACGwnD//4ZvAIAAAGcAgADymICAHzlngA== Date: Wed, 9 Jan 2019 05:26:38 +0000 Message-ID: References: <20181220011553.14900-1-eric.dong@intel.com> <20181220011553.14900-2-eric.dong@intel.com> <74D8A39837DF1E4DA445A8C0B3885C503F460E44@shsmsx102.ccr.corp.intel.com> <734D49CCEBEEF84792F5B80ED585239D5BF673E1@SHSMSX104.ccr.corp.intel.com> <74D8A39837DF1E4DA445A8C0B3885C503F4610D1@shsmsx102.ccr.corp.intel.com> <993916e9-86cf-0e3c-19e4-b334de5214e7@hpe.com> In-Reply-To: <993916e9-86cf-0e3c-19e4-b334de5214e7@hpe.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: [Patch 1/3] UefiCpuPkg/RegisterCpuFeaturesLib: Avoid AP calls PeiService. X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Jan 2019 05:26:42 -0000 Content-Language: en-US Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 SGkgYWxsLA0KDQpXZSBnb3Qgc29tZSBmZWVkYmFjayBhYm91dCB0aGlzIEJaLiBTb21lb25lIHRo aW5rIHRoaXMgdGltZW91dCBpcyB2YWx1YWJsZSBmb3IgdGhlIGRlYnVnIHB1cnBvc2UsIGFuZCBv cHBvc2UgdG8gcmVtb3ZlIGl0LiANCmh0dHBzOi8vYnVnemlsbGEudGlhbm9jb3JlLm9yZy9zaG93 X2J1Zy5jZ2k/aWQ9MTQxOQ0KDQpTbyBJJ20gYmFjayB0byBoZXJlIGFuZCB3YW50IHRvIHN0aWxs IHVzZSB0aGlzIGNoYW5nZS4gSSBub3QgdXNlICJ1cGRhdGUgUGNkU3BpbkxvY2tUaW1lb3V0IH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