From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) (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 A133D82020 for ; Fri, 10 Feb 2017 04:59:18 -0800 (PST) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 10 Feb 2017 04:59:17 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.35,141,1484035200"; d="scan'208,217";a="819308403" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by FMSMGA003.fm.intel.com with ESMTP; 10 Feb 2017 04:59:17 -0800 Received: from fmsmsx155.amr.corp.intel.com (10.18.116.71) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.248.2; Fri, 10 Feb 2017 04:59:17 -0800 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by FMSMSX155.amr.corp.intel.com (10.18.116.71) with Microsoft SMTP Server (TLS) id 14.3.248.2; Fri, 10 Feb 2017 04:59:16 -0800 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.88]) by SHSMSX152.ccr.corp.intel.com ([169.254.6.132]) with mapi id 14.03.0248.002; Fri, 10 Feb 2017 20:59:14 +0800 From: "Yao, Jiewen" To: Ard Biesheuvel CC: "Tian, Feng" , "edk2-devel@lists.01.org" , Leif Lindholm , "Kinney, Michael D" , "Fan, Jeff" , "Zeng, Star" Thread-Topic: [edk2] [PATCH V3 0/4] DXE Memory Protection Thread-Index: AQHSgqUbN7Jz0f1B3Eq2SFYIOVpghqFgSkIg//+NEACAAAWbAIAAA7mAgADBeLD//4m9AIAAh6wg//+KMQAAESR5oP//gBkAgAAOvwD//3j3IIAAia4AgAAE6wD//tmLEIACDSAAgAACKQD//yqRcAAlL3qA//9vNpA= Date: Fri, 10 Feb 2017 12:59:14 +0000 Message-ID: <74D8A39837DF1E4DA445A8C0B3885C503A8ECAA8@shsmsx102.ccr.corp.intel.com> References: <1486624832-15736-1-git-send-email-jiewen.yao@intel.com> <74D8A39837DF1E4DA445A8C0B3885C503A8EBD52@shsmsx102.ccr.corp.intel.com> <74D8A39837DF1E4DA445A8C0B3885C503A8EBEC3@shsmsx102.ccr.corp.intel.com> <74D8A39837DF1E4DA445A8C0B3885C503A8EBF20@shsmsx102.ccr.corp.intel.com> <74D8A39837DF1E4DA445A8C0B3885C503A8EC023@shsmsx102.ccr.corp.intel.com> <74D8A39837DF1E4DA445A8C0B3885C503A8EC093@shsmsx102.ccr.corp.intel.com> <74D8A39837DF1E4DA445A8C0B3885C503A8EC562@shsmsx102.ccr.corp.intel.com> <4F3E8C94-BFF2-42A5-8E12-C03F955627F8@linaro.org> <0ACD6B44-66A4-474E-A9E5-55A322FD169B@linaro.org> <74D8A39837DF1E4DA445A8C0B3885C503A8ECA37@shsmsx102.ccr.corp.intel.com> In-Reply-To: Accept-Language: zh-CN, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] MIME-Version: 1.0 X-Content-Filtered-By: Mailman/MimeDel 2.1.21 Subject: Re: [PATCH V3 0/4] DXE Memory Protection X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Feb 2017 12:59:18 -0000 Content-Language: en-US Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 VGhhbmtzIGZvciB0aGUgaW5mby4NCg0KTWlrZS9WaW5jZW50IGFsc28gbWVudGlvbmVkIHRoYXQg RlcgZG9lcyBub3Qgb3duIHBhZ2UgdGFibGVzIGFmdGVyIEV4aXRCb290U2VydmljZXMoKSwgc28g dGhlIE9TIHdvdWxkIGhhdmUgdG8gcmVsYXggTlggcHJvdGVjdG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