From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 134.134.136.100, mailfrom: ray.ni@intel.com) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by groups.io with SMTP; Tue, 02 Jul 2019 07:44:37 -0700 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 02 Jul 2019 07:44:36 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.63,443,1557212400"; d="scan'208";a="184524534" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by fmsmga001.fm.intel.com with ESMTP; 02 Jul 2019 07:44:36 -0700 Received: from fmsmsx152.amr.corp.intel.com (10.18.125.5) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 2 Jul 2019 07:44:36 -0700 Received: from shsmsx102.ccr.corp.intel.com (10.239.4.154) by FMSMSX152.amr.corp.intel.com (10.18.125.5) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 2 Jul 2019 07:44:35 -0700 Received: from shsmsx104.ccr.corp.intel.com ([169.254.5.110]) by shsmsx102.ccr.corp.intel.com ([169.254.2.3]) with mapi id 14.03.0439.000; Tue, 2 Jul 2019 22:44:33 +0800 From: "Ni, Ray" To: "devel@edk2.groups.io" , "lersek@redhat.com" CC: "Dong, Eric" Subject: Re: [edk2-devel] [PATCH 3/3] UefiCpuPkg/PiSmmCpu: Enable 5 level paging when CPU supports Thread-Topic: [edk2-devel] [PATCH 3/3] UefiCpuPkg/PiSmmCpu: Enable 5 level paging when CPU supports Thread-Index: AQHVMArDhU4DSTqT5EKSWXouX08iNaa3aQMw Date: Tue, 2 Jul 2019 14:44:33 +0000 Message-ID: <734D49CCEBEEF84792F5B80ED585239D5C211134@SHSMSX104.ccr.corp.intel.com> References: <20190628064700.549472-1-ray.ni@intel.com> <20190628064700.549472-4-ray.ni@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 Return-Path: ray.ni@intel.com Content-Language: en-US Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 TGFzemxvLA0KSSBhZ3JlZSB3aXRoIHlvdXIgY2hhbmdlcy4NCldpbGwgaW5jbHVkZSB5b3VyIGNo YW5nZXMgaW4gVjIuDQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogZGV2 ZWxAZWRrMi5ncm91cHMuaW8gPGRldmVsQGVkazIuZ3JvdXBzLmlvPiBPbiBCZWhhbGYgT2YgTGFz emxvIEVyc2VrDQo+IFNlbnQ6IE1vbmRheSwgSnVseSAxLCAyMDE5IDg6NDUgUE0NCj4gVG86IGRl dmVsQGVkazIuZ3JvdXBzLmlvOyBOaSwgUmF5IDxyYXkubmlAaW50ZWwuY29tPg0KPiBDYzogRG9u ZywgRXJpYyA8ZXJpYy5kb25nQGludGVsLmNvbT4NCj4gU3ViamVjdDogUmU6IFtlZGsyLWRldmVs XSBbUEFUQ0ggMy8zXSBVZWZpQ3B1UGtnL1BpU21tQ3B1OiBFbmFibGUgNSBsZXZlbA0KPiBwYWdp bmcgd2hlbiBDUFUgc3VwcG9ydHMNCj4gDQo+IE9uIDA2LzI4LzE5IDA4OjQ3LCBOaSwgUmF5IHdy b3RlOg0KPiA+IFJFRjpodHRwczovL2J1Z3ppbGxhLnRpYW5vY29yZS5vcmcvc2hvd19idWcuY2dp P2lkPTE5NDYNCj4gPg0KPiA+IFRoZSBwYXRjaCBjaGFuZ2VzIFNNTSBlbnZpcm9ubWVudCB0byB1 c2UgNSBsZXZlbCBwYWdpbmcgd2hlbiBDUFUNCj4gPiBzdXBwb3J0cyBpdC4NCj4gPg0KPiA+IFNp Z25lZC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