From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from SMTP.CITRIX.COM (smtp.citrix.com [66.165.176.89]) (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 75A1D80328 for ; Fri, 10 Mar 2017 07:21:46 -0800 (PST) X-IronPort-AV: E=Sophos;i="5.36,141,1486425600"; d="scan'208";a="412933146" Date: Fri, 10 Mar 2017 15:21:42 +0000 From: Anthony PERARD To: "Fan, Jeff" CC: "Yao, Jiewen" , "edk2-devel@lists.01.org" , "Kinney, Michael D" Message-ID: <20170310152142.GL1760@perard.uk.xensource.com> References: <1487660229-4820-1-git-send-email-jiewen.yao@intel.com> <1487660229-4820-2-git-send-email-jiewen.yao@intel.com> <20170309115237.GK1760@perard.uk.xensource.com> <542CF652F8836A4AB8DBFAAD40ED192A4C559F60@shsmsx102.ccr.corp.intel.com> MIME-Version: 1.0 In-Reply-To: <542CF652F8836A4AB8DBFAAD40ED192A4C559F60@shsmsx102.ccr.corp.intel.com> User-Agent: Mutt/1.8.0 (2017-02-23) Subject: Re: [PATCH V4 1/3] UefiCpuPkg/CpuDxe: Add memory attribute setting. X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Mar 2017 15:21:46 -0000 Content-Type: text/plain; charset="utf-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit On Fri, Mar 10, 2017 at 01:02:22AM +0000, Fan, Jeff wrote: > Anthony, > > MSR 0x1A0 is architectural MSR defined in IA32 SDM. > > Have you tried AMD real platform? Yes, I did, and unless I've made a mistake, trying to read msr 0x1a0 does generate a GPF. Also, I've now take a look into the AMD manuals[1] and more specificaly "AMD64 Architecture Programmer’s Manual Volume 2: System Programming"[2], there is no sign of MSR 0x1a0 (in Appendix A). As for the XD bit on AMD, (well NX actually), it is describe at 5.6.3, in the "Page Translation and Protection" chapter. About MSR 0x1a0 been architectural defined, I guess that applies only to Intel CPUs, all of them. [1]: http://developer.amd.com/resources/developer-guides-manuals/ [2]: http://support.amd.com/TechDocs/24593.pdf Thanks, -- Anthony PERARD