From: Keir Fraser Subject: Re: [Patch] Enable SMEP CPU feature support for XEN itself Date: Thu, 02 Jun 2011 20:24:24 +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 02/06/2011 15:36, "Li, Xin" wrote: >> } else >>> setup_clear_cpu_cap(X86_FEATURE_SMEP); > > This needs to be done on APs too. Thus I think we still need define > setup_smep as __cpuinit. 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. -- Keir