From mboxrd@z Thu Jan 1 00:00:00 1970 From: Keir Fraser Subject: Re: [Patch] Enable SMEP CPU feature support for XEN itself Date: Fri, 03 Jun 2011 13:34:04 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "Li, Xin" , Jan Beulich , "Yang, Wei Y" Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On 03/06/2011 12:54, "Li, Xin" wrote: >>> The whole point of setup_clear_cpu_cap() is that it only needs to run on the >>> BP and the change gets picked up by every AP automatically as it boots. >> >> Yeah, and we can't do leaf 7.0 detect in generic_identify. Or will again set >> SMEP in >> capabilities, but it should be ok. > > I tried to not do leaf 7.0 detect on AP booting code, but system behaves > abnormally > (not hang, but "su -" never returns, after just revert the change, it runs > well). > > While at this point I want to focus on SMEP logic, we can make the > improvements, > to move such initialization to BP code only, later. Also it makes no much > sense to only > move disable_smep that way, we should move all such variables. Just get another rev of the patches out and we'll iterate if necessary. -- Keir > Thanks! > -Xin