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.115; helo=mga14.intel.com; envelope-from=jiewen.yao@intel.com; receiver=edk2-devel@lists.01.org Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) (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 952A12118A587 for ; Wed, 7 Nov 2018 00:28:01 -0800 (PST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 07 Nov 2018 00:28:01 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,475,1534834800"; d="scan'208";a="106588510" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by orsmga002.jf.intel.com with ESMTP; 07 Nov 2018 00:28:00 -0800 Received: from fmsmsx101.amr.corp.intel.com (10.18.124.199) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.408.0; Wed, 7 Nov 2018 00:28:00 -0800 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by fmsmsx101.amr.corp.intel.com (10.18.124.199) with Microsoft SMTP Server (TLS) id 14.3.408.0; Wed, 7 Nov 2018 00:27:59 -0800 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.84]) by SHSMSX152.ccr.corp.intel.com ([169.254.6.214]) with mapi id 14.03.0415.000; Wed, 7 Nov 2018 16:27:58 +0800 From: "Yao, Jiewen" To: Laszlo Ersek CC: "Ni, Ruiyu" , "edk2-devel@lists.01.org" , "Dong, Eric" Thread-Topic: [PATCH] UefiCpuPkg/SmmCpu: Block SMM read-out only when static paging is used Thread-Index: AQHUdXySOJOERivmzkq+iKHhZS1tGqVCZhsAgADzf5SAAKHAsA== Date: Wed, 7 Nov 2018 08:27:57 +0000 Message-ID: <74D8A39837DF1E4DA445A8C0B3885C503F3D8305@shsmsx102.ccr.corp.intel.com> References: <20181106025935.102620-1-ruiyu.ni@intel.com>, <4F047944-D550-432F-9A60-451D9772FE43@intel.com> In-Reply-To: <4F047944-D550-432F-9A60-451D9772FE43@intel.com> Accept-Language: zh-CN, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMjkzOTIyN2QtZmNiNC00ZTgxLTk3NmQtN2Y1MDQ0ZjRlOGJkIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiU09KN2IrY01sWW5CSkJrMWI1WFloNEhPNG9EYmpKZmJhcU9kNUtJcVR1Tkc5UGZ6dWt5enNYSWpFRmtWbWNObCJ9 x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.0.400.15 dlp-reaction: no-action x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: [PATCH] UefiCpuPkg/SmmCpu: Block SMM read-out only when static paging is used X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Nov 2018 08:28:01 -0000 Content-Language: en-US Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: base64 SWYgU3RhdGljIHBhZ2luZyBpcyBub3QgdXNlZCwgdGhlbiB0aGUgU01NIHVzZXMgZHluYW1pYyBw YWdpbmcu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