From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=134.134.136.100; helo=mga07.intel.com; envelope-from=eric.dong@intel.com; receiver=edk2-devel@lists.01.org Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) (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 9E8742034CF89 for ; Wed, 25 Oct 2017 19:21:41 -0700 (PDT) Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga105.jf.intel.com with ESMTP; 25 Oct 2017 19:25:26 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.43,433,1503385200"; d="scan'208";a="142317019" Received: from fmsmsx104.amr.corp.intel.com ([10.18.124.202]) by orsmga004.jf.intel.com with ESMTP; 25 Oct 2017 19:25:26 -0700 Received: from fmsmsx118.amr.corp.intel.com (10.18.116.18) by fmsmsx104.amr.corp.intel.com (10.18.124.202) with Microsoft SMTP Server (TLS) id 14.3.319.2; Wed, 25 Oct 2017 19:25:25 -0700 Received: from shsmsx104.ccr.corp.intel.com (10.239.4.70) by fmsmsx118.amr.corp.intel.com (10.18.116.18) with Microsoft SMTP Server (TLS) id 14.3.319.2; Wed, 25 Oct 2017 19:25:25 -0700 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.175]) by SHSMSX104.ccr.corp.intel.com ([169.254.5.152]) with mapi id 14.03.0319.002; Thu, 26 Oct 2017 10:25:23 +0800 From: "Dong, Eric" To: Laszlo Ersek , "edk2-devel@lists.01.org" CC: "Ni, Ruiyu" Thread-Topic: [Patch] UefiCpuPkg/CpuFeatures: Export HOB if CPU initialized in PEI. Thread-Index: AQHTTZ+Wxdvm5hYRKUuku+XA5qsbBqL1ZUNw Date: Thu, 26 Oct 2017 02:25:22 +0000 Message-ID: References: <1508918319-10232-1-git-send-email-eric.dong@intel.com> <516d85f0-c24c-25dd-6417-86643d389978@redhat.com> In-Reply-To: <516d85f0-c24c-25dd-6417-86643d389978@redhat.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] UefiCpuPkg/CpuFeatures: Export HOB if CPU initialized in PEI. X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Oct 2017 02:21:41 -0000 Content-Language: en-US Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 TGFzemxvLA0KDQo+IC0tLS0tT3JpZ2luYWwgTWVzc2FnZS0tLS0tDQo+IEZyb206IExhc3psbyBF cnNlayBbbWFpbHRvOmxlcnNla0ByZWRoYXQuY29tXQ0KPiBTZW50OiBXZWRuZXNkYXksIE9jdG9i ZXIgMjUsIDIwMTcgMTA6NDMgUE0NCj4gVG86IERvbmcsIEVyaWMgPGVyaWMuZG9uZ0BpbnRlbC5j b20+OyBlZGsyLWRldmVsQGxpc3RzLjAxLm9yZw0KPiBDYzogTmksIFJ1aXl1IDxydWl5dS5uaUBp bnRlbC5jb20+DQo+IFN1YmplY3Q6IFJlOiBbUGF0Y2hdIFVlZmlDcHVQa2cvQ3B1RmVhdHVyZXM6 IEV4cG9ydCBIT0IgaWYgQ1BVIGluaXRpYWxpemVkIGluDQo+IFBFSS4NCj4gDQo+IEhpIEVyaWMs DQo+IA0KPiBPbiAxMC8yNS8xNyAwOTo1OCwgRXJpYyBEb25nIHdyb3RlOg0KPiA+IEluIGN1cnJl bnQgaW1wbGVtZW50YXRpb24sIENQVSBpbml0aWFsaXplZCBjYW4gYmUgZG9uZSBpbiBQRUkgb3Ig RFhFDQo+ID4gcGhhc2UuIFBFSSB1c2VzIENwdUZlYXR1cmVzUGllIGFuZCBEeGUgdXNlcyBDcHVG ZWF0dXJlc0R4ZS4NCj4gDQo+ICgxKSA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