From: "Jan Beulich" Subject: Re: Re: [patch/rfc] multiprotocol blkback drivers (32-on-64) Date: Wed, 20 Dec 2006 15:47:37 +0000 Message-ID: <45896929.76E4.0078.0@novell.com> References: <458952D8.6030803@suse.de> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <458952D8.6030803@suse.de> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Gerd Hoffmann , Keir Fraser Cc: Xen devel list List-Id: xen-devel@lists.xenproject.org Looks a lot nicer now, except that I dislike the replication of the request/response structures in now three places. Besides possibly being a maintenance issue, this now seems worse in terms of scaling up to eventual future protocol versions. I had understood Keir in a much different way - adding a compiler abstraction header (which maybe could even make use of Linux' native ones) to include/xen, and making use of its abstraction directly in xen/include/public/io/blkif.h. Jan >>> Gerd Hoffmann 20.12.06 16:12 >>> Hi, > I think it would be reasonable to put this stuff in a (new) Linux-specific > header file that wraps the Xen-public blkif.h. We could put just enough > support in blkif.h itself to allow it to be multiply-compiled. Then > different OSes can wrap or rewrite blkif.h as they see fit to get the > required layout for 32-bit and 64-bit ABIs. This conveniently sidesteps some > of these issues and allows you to concentrate on Linux and GCC, while not > constraining the implementation choices for anyone else. Next interation with exactly that implemented, this time even tested with blkback in all four combinations out of 32/64 dom0, 32/64 guest. cheers, Gerd -- Gerd Hoffmann