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.24; helo=mga09.intel.com; envelope-from=star.zeng@intel.com; receiver=edk2-devel@lists.01.org Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) (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 0699821F3C191 for ; Tue, 10 Oct 2017 05:12:40 -0700 (PDT) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 10 Oct 2017 05:16:08 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.42,504,1500966000"; d="scan'208";a="1204214871" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by fmsmga001.fm.intel.com with ESMTP; 10 Oct 2017 05:16:08 -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; Tue, 10 Oct 2017 05:16:08 -0700 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.175]) by SHSMSX151.ccr.corp.intel.com ([169.254.3.98]) with mapi id 14.03.0319.002; Tue, 10 Oct 2017 20:16:05 +0800 From: "Zeng, Star" To: Laszlo Ersek , "Yao, Jiewen" CC: edk2-devel-01 , "Dong, Eric" , Ladi Prosek , "Zeng, Star" Thread-Topic: [edk2] [PATCH 0/6] MdeModulePkg/VariableSmm: fix MOR / MorLock inconsistency Thread-Index: AQHTPI6Vl/AI6JtY50m8bvuo5sVHz6LSXhCAgACc5wCACQMzgIAAYkiAgACpb8A= Date: Tue, 10 Oct 2017 12:16:05 +0000 Message-ID: <0C09AFA07DD0434D9E2A0C6AEB0483103B97FD05@shsmsx102.ccr.corp.intel.com> References: <20171003212834.25740-1-lersek@redhat.com> <74D8A39837DF1E4DA445A8C0B3885C503A9CE249@shsmsx102.ccr.corp.intel.com> <352f1572-161d-9a32-6628-7f07b17c7ecc@redhat.com> <74D8A39837DF1E4DA445A8C0B3885C503A9D7216@shsmsx102.ccr.corp.intel.com> <9e4c0e13-88ef-3dee-b96f-091df517b55e@redhat.com> In-Reply-To: <9e4c0e13-88ef-3dee-b96f-091df517b55e@redhat.com> Accept-Language: zh-CN, 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.239.127.40] MIME-Version: 1.0 Subject: Re: [PATCH 0/6] MdeModulePkg/VariableSmm: fix MOR / MorLock inconsistency X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Oct 2017 12:12:41 -0000 Content-Language: en-US Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 R29vZCB0byBzZWUgdGhlIHNlcmllcyBwdXNoZWQuDQoNClRoYW5rcywNClN0YXINCi0tLS0tT3Jp Z2luYWwgTWVzc2FnZS0tLS0tDQpGcm9tOiBMYXN6bG8gRXJzZWsgW21haWx0bzpsZXJzZWtAcmVk aGF0LmNvbV0gDQpTZW50OiBUdWVzZGF5LCBPY3RvYmVyIDEwLCAyMDE3IDY6MDkgUE0NClRvOiBZ YW8sIEppZXdlbiA8amlld2VuLnlhb0BpbnRlbC5jb20+OyBaZW5nLCBTdGFyIDxzdGFyLnplbmdA aW50ZWwuY29tPg0KQ2M6IGVkazItZGV2ZWwtMDEgPGVkazItZGV2ZWxAbGlzdHMuMDEub3JnPjsg RG9uZywgRXJpYyA8ZXJpYy5kb25nQGludGVsLmNvbT47IExhZGkgUHJvc2VrIDxscHJvc2VrQHJl ZGhhdC5jb20+DQpTdWJqZWN0OiBSZTogW2VkazJdIFtQQVRDSCAwLzZdIE1kZU1vZHV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