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.31; helo=mga06.intel.com; envelope-from=ruiyu.ni@intel.com; receiver=edk2-devel@lists.01.org Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) (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 2C03D210EE4CD for ; Sun, 12 Aug 2018 22:42:52 -0700 (PDT) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 12 Aug 2018 22:42:51 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.53,232,1531810800"; d="scan'208";a="82866649" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by orsmga002.jf.intel.com with ESMTP; 12 Aug 2018 22:42:43 -0700 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.319.2; Sun, 12 Aug 2018 22:42:43 -0700 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by FMSMSX114.amr.corp.intel.com (10.18.116.8) with Microsoft SMTP Server (TLS) id 14.3.319.2; Sun, 12 Aug 2018 22:42:42 -0700 Received: from shsmsx104.ccr.corp.intel.com ([169.254.5.143]) by SHSMSX152.ccr.corp.intel.com ([169.254.6.150]) with mapi id 14.03.0319.002; Mon, 13 Aug 2018 13:42:40 +0800 From: "Ni, Ruiyu" To: Laszlo Ersek , "Dong, Eric" , "edk2-devel@lists.01.org" Thread-Topic: [Patch v3 1/5] UefiCpuPkg/PiSmmCpuDxeSmm: Use GDT/IDT saved in Smram. Thread-Index: AQHUMGFW1M6o3t+GUkOBXarpUlbtTaS4mfCAgASWQ8A= Date: Mon, 13 Aug 2018 05:42:40 +0000 Message-ID: <734D49CCEBEEF84792F5B80ED585239D5BDD07B5@SHSMSX104.ccr.corp.intel.com> References: <20180810041909.12776-1-eric.dong@intel.com> <20180810041909.12776-2-eric.dong@intel.com> In-Reply-To: Accept-Language: en-US, zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: [Patch v3 1/5] UefiCpuPkg/PiSmmCpuDxeSmm: Use GDT/IDT saved in Smram. X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Aug 2018 05:42:52 -0000 Content-Language: en-US Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 DQoNClRoYW5rcy9SYXkNCg0KPiAtLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KPiBGcm9tOiBM YXN6bG8gRXJzZWsgPGxlcnNla0ByZWRoYXQuY29tPg0KPiBTZW50OiBGcmlkYXksIEF1Z3VzdCAx MCwgMjAxOCAxMTo0MCBQTQ0KPiBUbzogRG9uZywgRXJpYyA8ZXJpYy5kb25nQGludGVsLmNvbT47 IGVkazItZGV2ZWxAbGlzdHMuMDEub3JnDQo+IENjOiBOaSwgUnVpeXUgPHJ1aXl1Lm5pQGludGVs LmNvbT4NCj4gU3ViamVjdDogUmU6IFtQYXRjaCB2MyAxLzVdIFVlZmlDcHVQa2cvUGlTbW1DcHVE eGVTbW06IFVzZSBHRFQvSURUDQo+IHNhdmVkIGluIFNtcmFtLg0KPiANCj4gT24gMDgvMTAvMTgg MDY6MTksIEVyaWMgRG9uZyB3cm90ZToNCj4gPiBDdXJyZW50IGltcGxlbWVudGF0aW9uIGNvcGll cyBHRFQvSURUIGF0IFNtbVJlYWR5VG9Mb2NrIHBvaW50IGZyb20NCj4gPiBBQ1BJIE5WUyBtZW1v cn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