From: "Jan Beulich" Subject: Re: [PATCH RFC 4/7] xen/x86: Migrate to XBI structure Date: Tue, 09 Sep 2014 14:37:23 +0100 Message-ID: <540F1EB30200007800032B32@mail.emea.novell.com> References: <1407539046-16910-1-git-send-email-daniel.kiper@oracle.com> <1407539046-16910-5-git-send-email-daniel.kiper@oracle.com> <53E7A662.7040504@citrix.com> <20140909132205.GP3459@olila.local.net-space.pl> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1XRLbs-0005cR-0w for xen-devel@lists.xenproject.org; Tue, 09 Sep 2014 13:37:28 +0000 In-Reply-To: <20140909132205.GP3459@olila.local.net-space.pl> 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: Andrew Cooper , Daniel Kiper Cc: keir@xen.org, ian.campbell@citrix.com, stefano.stabellini@eu.citrix.com, roy.franz@linaro.org, ning.sun@intel.com, ross.philipson@citrix.com, xen-devel@lists.xenproject.org, qiaowei.ren@intel.com, richard.l.maliszewski@intel.com, gang.wei@intel.com, fu.wei@linaro.org List-Id: xen-devel@lists.xenproject.org >>> On 09.09.14 at 15:22, wrote: > On Sun, Aug 10, 2014 at 06:05:38PM +0100, Andrew Cooper wrote: >> On 09/08/14 00:04, Daniel Kiper wrote: >> > +static void zero_struct(u32 s, u32 bytes) >> > +{ >> > + asm volatile( >> > + " cld \n" >> >> __start has already performed cld for us. There is nothing which will >> have set it between then and here. > > Hmmm... Are we sure that gcc will not insert an instruction > which will change direction flag? cld does not cost a lot > and we will be on safe side here. Just consider in how many other places we'd need CLD if gcc was permitted to play freely with EFLAGS.DF. Jan