From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Permerror (SPF Permanent Error: More than 10 MX records returned) identity=mailfrom; client-ip=192.55.52.43; helo=mga05.intel.com; envelope-from=binx.song@intel.com; receiver=edk2-devel@lists.01.org Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) (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 10D792034B9E3 for ; Wed, 13 Dec 2017 17:37:06 -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 fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 13 Dec 2017 17:41:47 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.45,399,1508828400"; d="scan'208,217";a="18053271" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by orsmga002.jf.intel.com with ESMTP; 13 Dec 2017 17:41:46 -0800 Received: from fmsmsx121.amr.corp.intel.com (10.18.125.36) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.319.2; Wed, 13 Dec 2017 17:41:46 -0800 Received: from shsmsx101.ccr.corp.intel.com (10.239.4.153) by fmsmsx121.amr.corp.intel.com (10.18.125.36) with Microsoft SMTP Server (TLS) id 14.3.319.2; Wed, 13 Dec 2017 17:41:46 -0800 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.175]) by SHSMSX101.ccr.corp.intel.com ([169.254.1.159]) with mapi id 14.03.0319.002; Thu, 14 Dec 2017 09:41:44 +0800 From: "Song, BinX" To: Fan Jeff , "Ni, Ruiyu" , Laszlo Ersek , "edk2-devel@lists.01.org" CC: "Dong, Eric" Thread-Topic: [edk2] [PATCH V2] UefiCpuPkg: Check invalid RegisterCpuFeature parameter Thread-Index: AdNzuwEvCqGACU0OSsSJooYi3RNSEv//4RCAgAABQoCAAHFkgP/+0HzQ Date: Thu, 14 Dec 2017 01:41:43 +0000 Message-ID: <559D2DF22BC9A3468B4FA1AA547F0EF1025C2620@shsmsx102.ccr.corp.intel.com> References: <559D2DF22BC9A3468B4FA1AA547F0EF1025C22DA@shsmsx102.ccr.corp.intel.com> , <912ea27f-0500-ca54-c8f8-37124c61e1a9@Intel.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.239.127.40] MIME-Version: 1.0 X-Content-Filtered-By: Mailman/MimeDel 2.1.22 Subject: Re: [PATCH V2] UefiCpuPkg: Check invalid RegisterCpuFeature parameter 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: Thu, 14 Dec 2017 01:37:07 -0000 Content-Language: en-US Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: base64 SGkgQWxsLA0KDQpUaGFua3MgZm9yIHlvdXIgc3VnZ2VzdGlvbiwgSSB3aWxsIHVwZGF0ZSBhIFYz IHBhdGNoLg0KDQpCZXN0IFJlZ2FyZHMsDQpCZWxsIFNvbmcNCg0KRnJvbTogRmFuIEplZmYgW21h aWx0bzp2YW5qZWZmXzkxOUBob3RtYWlsLmNvbV0NClNlbnQ6IFdlZG5lc2RheSwgRGVjZW1iZXIg MTMsIDIwMTcgMTE6MzUgUE0NClRvOiBOaSwgUnVpeXUgPHJ1aXl1Lm5pQGludGVsLmNvbT47IExh c3psbyBFcnNlayA8bGVyc2VrQHJlZGhhdC5jb20+OyBTb25nLCBCaW5YIDxiaW54LnNvbmdAaW50 ZWwuY29tPjsgZWRrMi1kZXZlbEBsaXN0cy4wMS5vcmcNCkNjOiBEb25nLCBFcmljIDxlcmljLmRv bmdAaW50ZWwuY29tPg0KU3ViamVjdDogtPC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