From mboxrd@z Thu Jan 1 00:00:00 1970 From: Olaf Hering Subject: Re: [PATCH] tools/libxc: make volatile keyword for bitmap operations optional Date: Mon, 30 Jan 2012 11:26:21 +0100 Message-ID: <20120130102621.GB9935@aepfle.de> References: <20120130091002.GA29543@aepfle.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline 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: Keir Fraser Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On Mon, Jan 30, Keir Fraser wrote: > On 30/01/2012 09:10, "Olaf Hering" wrote: > > Will gcc use the right thing if the array is passed to the hyperviso, > > and will it reload everything after the hypercall? If yes, the volatile > > can indeed go. > > Of course. Lots of things would fail to work if calls to outside the current > linkage unit didn't flush/invalidate cached shared-data accesses. That's a > fundamental C compiler thing. You are right, after thinking about it I came to the same conclusion. I will send an updated patch. Olaf