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=michael.d.kinney@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 3F4B32202E4A2 for ; Thu, 22 Mar 2018 17:22:42 -0700 (PDT) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 22 Mar 2018 17:29:14 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.48,347,1517904000"; d="scan'208";a="36078335" Received: from orsmsx103.amr.corp.intel.com ([10.22.225.130]) by FMSMGA003.fm.intel.com with ESMTP; 22 Mar 2018 17:29:13 -0700 Received: from orsmsx112.amr.corp.intel.com ([169.254.3.146]) by ORSMSX103.amr.corp.intel.com ([169.254.5.39]) with mapi id 14.03.0319.002; Thu, 22 Mar 2018 17:29:13 -0700 From: "Kinney, Michael D" To: Laszlo Ersek , edk2-devel-01 , "Kinney, Michael D" CC: Ard Biesheuvel , "Dong, Eric" , "Yao, Jiewen" , Leif Lindholm , "Gao, Liming" , "Ni, Ruiyu" Thread-Topic: [PATCH 00/14] rid PiSmmCpuDxeSmm of DB-encoded instructions Thread-Index: AQHTnDO1KohLUtTTY0iG4b+6xBO9SqORXlrAgATHWwD///0M0IAAmHcAgEaHDHA= Date: Fri, 23 Mar 2018 00:29:12 +0000 Message-ID: References: <20180202143954.7357-1-lersek@redhat.com> <7d4749bf-f25f-f40e-e991-5af05232000f@redhat.com> In-Reply-To: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.0.0.116 dlp-reaction: no-action x-originating-ip: [10.22.254.139] MIME-Version: 1.0 Subject: Re: [PATCH 00/14] rid PiSmmCpuDxeSmm of DB-encoded instructions X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Mar 2018 00:22:42 -0000 Content-Language: en-US Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 TGFzemxvLA0KDQpJIGRvIGxpa2UgdGhpcyB0eXBlZGVmIGlkZWEuDQoNCiAgdHlwZWRlZiBWT0lE IChYODZfQVNTRU1CTFlfTEFCRUwpIChWT0lEKTsNCg0KTWF5YmUgY2hhbmdlIHRoZSBuYW1lIHNv IGl0IGlzIGNsZWFyZXIgdGhhdCANCnRoaXMgc2hvdWxkIG5ldmVyIGJlIHVzZWQgaW4gYSBjYWxs LiAgQSBjb21tZW50DQpibG9jayBhYm91dCB0aGUgdHlwZWRlZiBjYW4gYWxzbyBjbGFyaWZ5IHRo ZQ0KZXhwZWN0ZWQgdXNhZ2UuDQoNCiAgdHlwZWRlZiBWT0lEIChYODZfQVNTRU1CTFlfUEFUQ0hf TEFCRUwpIChWT0lEKTsNCg0KVGhhbmtzLA0KDQpNaWtlDQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNz YWdlLS0tLS0NCj4gRnJvbTogTGFzemxvIEVyc2VrIFttYWlsdG86bGVyc2VrQHJlZGhhdC5jb21d DQo+IFNlbnQ6IE1vbmRheSwgRmVicnVhcnkgNSwgMjAxOCAxMToyMyBBTQ0KPiBUbzogS2lubmV5 LCBNaWNoYWVsIEQgPG1pY2hhZWwuZC5raW5uZXlAaW50ZWwuY29tPjsNCj4gZWRrMi1kZXZlbC0w MSA8ZWRrMi1kZXZlbEBsaXN0cy4wMS5vcmc+DQo+IENjOiBBcmQgQmllc2hldXZlbCA8YXJkLmJp ZXNoZXV2ZWxAbGluYXJvLm9yZz47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