From: "Jan Beulich" Subject: Re: [PATCH 1/4] VT-d/qinval: make local variable used for communication with IOMMU "volatile" Date: Mon, 16 Jun 2014 14:03:11 +0100 Message-ID: <539F072F020000780001AA91@mail.emea.novell.com> References: <539F025A020000780001AA25@mail.emea.novell.com> <539F038C020000780001AA34@mail.emea.novell.com> <539EE943.90702@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta4.messagelabs.com ([85.158.143.247]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WwWZB-0000e7-KT for xen-devel@lists.xenproject.org; Mon, 16 Jun 2014 13:03:17 +0000 In-Reply-To: <539EE943.90702@citrix.com> 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 Cc: Yang Z Zhang , xen-devel , xiantao.zhang@intel.com List-Id: xen-devel@lists.xenproject.org >>> On 16.06.14 at 14:55, wrote: > On 16/06/14 13:47, Jan Beulich wrote: >> Without that there is - afaict - nothing preventing the compiler from >> putting the variable into a register for the duration of the wait loop. >> >> Signed-off-by: Jan Beulich > > I seem to remember Tim saying that behaviour like this is covered by > -fno-strict-aliasing Afaik it would be if the variable was not an automatic one. Jan