From: "Jan Beulich" Subject: Re: [PATCH v6 05/10] Clear AC bit in RFLAGS to protect Xen itself by SMAP Date: Thu, 08 May 2014 07:54:24 +0100 Message-ID: <536B464002000078000104D0@mail.emea.novell.com> References: <1399450782-14735-1-git-send-email-feng.wu@intel.com> <1399450782-14735-6-git-send-email-feng.wu@intel.com> <536A009B.20802@citrix.com> <536A37DD020000780000FE3D@mail.emea.novell.com> <536A1EC4.40304@citrix.com> <536AE4A3.6020905@citrix.com> <536B431802000078000104B9@mail.emea.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Feng Wu Cc: Kevin Tian , "ian.campbell@citrix.com" , Andrew Cooper , Eddie Dong , "xen-devel@lists.xen.org" , Jun Nakajima List-Id: xen-devel@lists.xenproject.org >>> On 08.05.14 at 08:49, wrote: >> From: Jan Beulich [mailto:JBeulich@suse.com] >> >>> On 08.05.14 at 04:02, wrote: >> > Sure, thanks for the suggestion! I will pass 0 to SAVE_ALL. >> > My point is that ASM_STAC should be deferred as much as possible. >> >> There's no point in deferring it as much as possible if you don't CLAC >> earlier on. In fact I'm inclined to ask to make the SAVE_ALL parameter >> a tristate, allowing both CLAC and STAC to be done right there. > > Currently, there is only one place where we need to set AC around SAVE_ALL, > it is double_fault. > Do we really need to make SAVE_ALL that way? Note that I wrote "I'm inclined to ask ...", not "I'd like to ask ...", i.e. if you feel uncomfortable with this, I'm still fine with leaving the macro as is. But my argument stands that deferring STAC here as much as possible is pointless. Jan