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.100; helo=mga07.intel.com; envelope-from=hao.a.wu@intel.com; receiver=edk2-devel@lists.01.org Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) (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 8498A210E0FA0 for ; Thu, 16 Aug 2018 18:19:49 -0700 (PDT) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 16 Aug 2018 18:19:48 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.53,249,1531810800"; d="scan'208";a="225316899" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by orsmga004.jf.intel.com with ESMTP; 16 Aug 2018 18:18:56 -0700 Received: from shsmsx151.ccr.corp.intel.com (10.239.6.50) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.319.2; Thu, 16 Aug 2018 18:18:56 -0700 Received: from shsmsx104.ccr.corp.intel.com ([169.254.5.143]) by SHSMSX151.ccr.corp.intel.com ([169.254.3.185]) with mapi id 14.03.0319.002; Fri, 17 Aug 2018 09:18:54 +0800 From: "Wu, Hao A" To: Laszlo Ersek , "edk2-devel@lists.01.org" CC: "Kinney, Michael D" , "Yao, Jiewen" , "Dong, Eric" Thread-Topic: [edk2] [PATCH v2 0/2] UefiCpuPkg: Add RSB stuffing before RSM instruction Thread-Index: AQHUNQ9IvndpT4v3nUalpqusGSDubKTCSJaAgADavOA= Date: Fri, 17 Aug 2018 01:18:54 +0000 Message-ID: References: <20180816031422.15340-1-hao.a.wu@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 Subject: Re: [PATCH v2 0/2] UefiCpuPkg: Add RSB stuffing before RSM instruction 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: Fri, 17 Aug 2018 01:19:49 -0000 Content-Language: en-US Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 PiAtLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KPiBGcm9tOiBMYXN6bG8gRXJzZWsgW21haWx0 bzpsZXJzZWtAcmVkaGF0LmNvbV0NCj4gU2VudDogRnJpZGF5LCBBdWd1c3QgMTcsIDIwMTggNDow NSBBTQ0KPiBUbzogV3UsIEhhbyBBOyBlZGsyLWRldmVsQGxpc3RzLjAxLm9yZw0KPiBDYzogS2lu bmV5LCBNaWNoYWVsIEQ7IFlhbywgSmlld2VuOyBEb25nLCBFcmljDQo+IFN1YmplY3Q6IFJlOiBb ZWRrMl0gW1BBVENIIHYyIDAvMl0gVWVmaUNwdVBrZzogQWRkIFJTQiBzdHVmZmluZyBiZWZvcmUg UlNNDQo+IGluc3RydWN0aW9uDQo+IA0KPiBIZWxsbyBIYW8sDQo+IA0KPiBPbiAwOC8xNi8xOCAw NToxNCwgSGFvIFd1IHdyb3RlOg0KPiA+IFYyIGNoYW5nZXM6DQo+ID4gQS4gUmVmaW5lIGNvbW1p dCBsb2cgbWVzc2FnZSB0byBjbGFyaWZ5IHRoZSBwdXJwb3NlIG9mIHRoZSBzZXJpZXMNCj4gPg0K PiA+IEIuIEV4dHJhY3QgdGhlIFJTQiBzdHVmZmluZyBsb2dpYyB0byBJTkMgZmlsZXMgdG8gYXZv aWQgY29kZSBkdXBsaWNhdGlvbjoNCj4gPiBXaGVuIGNvbXBpbGluZyAuTkFTTSBzb3VyY2UgZmls ZXMsIHRoZSBjdXJyZW50IGJ1aWxkIH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