From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Subject: Re: [Xen-devel] [PATCH 0001/001] xen: multi page ring support for block devices Date: Thu, 15 Mar 2012 08:51:34 +0000 Message-ID: <1331801494.26979.8.camel@zakaz.uk.xensource.com> References: <1330701099-18281-1-git-send-email-santoshprasadnayak@gmail.com> <7914B38A4445B34AA16EB9F1352942F1010A1FA12364@SJCPMAILBOX01.citrite.net> <4F5739760200007800076DA6@nat28.tlf.novell.com> <230A793A-C929-468E-97BE-1C68920749E1@spectralogic.com> <4F60C888020000780007861F@nat28.tlf.novell.com> <59150D7B-8349-4249-A93A-04883F4AD744@spectralogic.com> <4F61B04402000078000788B8@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4F61B04402000078000788B8@nat28.tlf.novell.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: virtualization-bounces@lists.linux-foundation.org Errors-To: virtualization-bounces@lists.linux-foundation.org To: Jan Beulich Cc: "jeremy@goop.org" , "konrad.wilk@oracle.com" , "waldi@debian.org" , "joe.jin@oracle.com" , "weiyi.huang@gmail.com" , "virtualization@lists.linux-foundation.org" , Justin Gibbs , Paul Durrant , David Vrabel , Santosh Jodh , "" , "dgdegra@tycho.nsa.gov" , "xen-devel@lists.xen.org" , "lersek@redhat.com" List-Id: virtualization@lists.linuxfoundation.org On Thu, 2012-03-15 at 08:03 +0000, Jan Beulich wrote: > >>> On 14.03.12 at 18:01, Justin Gibbs wrote: > > While we're talking about fixing ring data structures, can RING_IDX > > be defined as a "uint32_t" instead of "unsigned int". The structure > > padding in the ring macros assumes RING_IDX is exactly 4 bytes, > > so this should be made explicit. ILP64 machines may still be a way > > out, but the use of non-fixed sized types in places where size really > > matters just isn't clean. > > Yes, if we're going to rev the interface, then any such flaws should be > corrected. There has been talk of doing something similar for netif too. IIRC the netchannel2 work included a new generic ring scheme with support for variable sized req/rsp elements and such. If we are going to rev the rings then should we try and use a common ring mechanism? I think so. If so then we could do worse than to start from the netchannel2 ring stuff and/or concepts? Looks like that is http://xenbits.xen.org/ext/netchannel2/linux-2.6.18/log/075f6677a290/include/xen/interface/io/uring.h still a bit nc2 specific though. Ian.