From: Keir Fraser Subject: Re: [rfc] [patch] grant_entry.flags accessors Date: Tue, 27 Jun 2006 11:39:28 +0100 Message-ID: <46ab924009436680faa7cc0cb807c411@cl.cam.ac.uk> References: <1151097564.14454.44.camel@basalt.austin.ibm.com> Mime-Version: 1.0 (Apple Message framework v624) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1151097564.14454.44.camel@basalt.austin.ibm.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Hollis Blanchard Cc: xen-devel , xen-ppc-devel List-Id: xen-devel@lists.xenproject.org On 23 Jun 2006, at 22:19, Hollis Blanchard wrote: > These patches are similar to changeset 10747 (which added > vcpu_mark_events_pending), in that they allow PPC to work around some > unusually-sized atomic operations, this time in the grant table driver. > > Keir, do you think it's a good idea to make a wiki page to list where > the current ABI is causing problems? That way, when the ABI opens up > again (Xen 4?), we'll have a list of places to fix? > > Anyways, I expect you'll have alternate name/interface suggestions in > the patches, so they're just RFC for now. You should be able to hide all this behind the generic atomic operations without slowing down sufficiently aligned operations at all. e.g. something like: define clear_bit(p,i) ((alignof(p)>=alignof(long)) ? clear_bit(p,i) : clear_bit_unaligned(p,i)) -- Keir