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.136; helo=mga12.intel.com; envelope-from=star.zeng@intel.com; receiver=edk2-devel@lists.01.org Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) (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 2EF85210DF5EE for ; Wed, 8 Aug 2018 04:37:45 -0700 (PDT) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 08 Aug 2018 04:37:45 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,457,1526367600"; d="scan'208";a="61565276" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by fmsmga008.fm.intel.com with ESMTP; 08 Aug 2018 04:37:45 -0700 Received: from fmsmsx113.amr.corp.intel.com (10.18.116.7) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.319.2; Wed, 8 Aug 2018 04:37:45 -0700 Received: from shsmsx104.ccr.corp.intel.com (10.239.4.70) by FMSMSX113.amr.corp.intel.com (10.18.116.7) with Microsoft SMTP Server (TLS) id 14.3.319.2; Wed, 8 Aug 2018 04:37:44 -0700 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.226]) by SHSMSX104.ccr.corp.intel.com ([169.254.5.143]) with mapi id 14.03.0319.002; Wed, 8 Aug 2018 19:37:43 +0800 From: "Zeng, Star" To: Laszlo Ersek , "Wang, Jian J" , "Ni, Ruiyu" , "edk2-devel@lists.01.org" CC: "Zeng, Star" Thread-Topic: [PATCH v3] IntelFrameworkModulePkg/Csm: Set CSM memory executable Thread-Index: AQHULtiCLVeTZFXuDEGZajzamHRR+aS06E6AgABDloCAAI1eYA== Date: Wed, 8 Aug 2018 11:37:42 +0000 Message-ID: <0C09AFA07DD0434D9E2A0C6AEB0483103BBA7805@shsmsx102.ccr.corp.intel.com> References: <20180808052739.85156-1-ruiyu.ni@intel.com> <33948035-ccf8-c850-49fa-9ca492197336@redhat.com> In-Reply-To: <33948035-ccf8-c850-49fa-9ca492197336@redhat.com> 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 Subject: Re: [PATCH v3] IntelFrameworkModulePkg/Csm: Set CSM memory executable 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: Wed, 08 Aug 2018 11:37:46 -0000 Content-Language: en-US Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 VGhlIGZ1bmN0aW9uIGRlc2NyaXB0aW9uIGNvbW1lbnRzIHNob3VsZCBiZSBub3QgcmVsYXRlZCB0 byB0aGlzIHBhdGNoLg0KSSBhbSBvayB3aXRoIG9yIHdpdGhvdXQgdXBkYXRpbmcgdGhlIGNvbW1l bnRzIGluIHRoaXMgcGF0Y2guDQpSZXZpZXdlZC1ieTogU3RhciBaZW5nIDxzdGFyLnplbmdAaW50 ZWwuY29tPi4NCg0KVGhhbmtzLA0KU3Rhcg0KLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCkZy b206IExhc3psbyBFcnNlayBbbWFpbHRvOmxlcnNla0ByZWRoYXQuY29tXSANClNlbnQ6IFdlZG5l c2RheSwgQXVndXN0IDgsIDIwMTggNzowNiBQTQ0KVG86IFdhbmcsIEppYW4gSiA8amlhbi5qLndh bmdAaW50ZWwuY29tPjsgTmksIFJ1aXl1IDxydWl5dS5uaUBpbnRlbC5jb20+OyBlZGsyLWRldmVs QGxpc3RzLjAxLm9yZw0KQ2M6IFplbmcsIFN0YXIgPHN0YXIu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