Linux virtualization list
 help / color / mirror / Atom feed
From: Ian Campbell <Ian.Campbell@citrix.com>
To: Jan Beulich <JBeulich@suse.com>
Cc: "jeremy@goop.org" <jeremy@goop.org>,
	"konrad.wilk@oracle.com" <konrad.wilk@oracle.com>,
	"waldi@debian.org" <waldi@debian.org>,
	"joe.jin@oracle.com" <joe.jin@oracle.com>,
	"weiyi.huang@gmail.com" <weiyi.huang@gmail.com>,
	"virtualization@lists.linux-foundation.org"
	<virtualization@lists.linux-foundation.org>,
	Justin Gibbs <justing@spectralogic.com>,
	Paul Durrant <Paul.Durrant@citrix.com>,
	David Vrabel <david.vrabel@citrix.com>,
	Santosh Jodh <Santosh.Jodh@citrix.com>,
	"<konrad@darnok.org>" <konrad@darnok.org>,
	"dgdegra@tycho.nsa.gov" <dgdegra@tycho.nsa.gov>,
	"xen-devel@lists.xen.org" <xen-devel@lists.xen.org>,
	"lersek@redhat.com" <lersek@redhat.com>
Subject: Re: [Xen-devel] [PATCH 0001/001] xen: multi page ring support for block devices
Date: Thu, 15 Mar 2012 08:51:34 +0000	[thread overview]
Message-ID: <1331801494.26979.8.camel@zakaz.uk.xensource.com> (raw)
In-Reply-To: <4F61B04402000078000788B8@nat28.tlf.novell.com>

On Thu, 2012-03-15 at 08:03 +0000, Jan Beulich wrote:
> >>> On 14.03.12 at 18:01, Justin Gibbs <justing@spectralogic.com> 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.

  reply	other threads:[~2012-03-15  8:51 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1330701099-18281-1-git-send-email-santoshprasadnayak@gmail.com>
2012-03-05 21:49 ` [PATCH 0001/001] xen: multi page ring support for block devices Santosh Jodh
     [not found] ` <7914B38A4445B34AA16EB9F1352942F1010A1FA12364@SJCPMAILBOX01.citrite.net>
2012-03-06  2:42   ` Rusty Russell
     [not found]   ` <87ty22xxee.fsf@rustcorp.com.au>
2012-03-06  6:21     ` Santosh Jodh
2012-03-06  8:34   ` Jan Beulich
2012-03-06 11:16   ` [Xen-devel] " Wei Liu
2012-03-06 17:20   ` Konrad Rzeszutek Wilk
2012-03-07  9:33     ` Jan Beulich
2012-03-07 15:15       ` Konrad Rzeszutek Wilk
2012-03-14  6:32       ` Justin Gibbs
2012-03-14  8:35         ` Jan Beulich
2012-03-14 15:34         ` Jan Beulich
2012-03-14 17:01           ` Justin Gibbs
2012-03-15  8:03             ` Jan Beulich
2012-03-15  8:51               ` Ian Campbell [this message]
2012-03-15  9:31                 ` Jan Beulich
     [not found]   ` <4F55DA3E0200007800076916@nat28.tlf.novell.com>
2012-03-14 17:17     ` Justin T. Gibbs
2012-03-15  8:09       ` Jan Beulich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1331801494.26979.8.camel@zakaz.uk.xensource.com \
    --to=ian.campbell@citrix.com \
    --cc=JBeulich@suse.com \
    --cc=Paul.Durrant@citrix.com \
    --cc=Santosh.Jodh@citrix.com \
    --cc=david.vrabel@citrix.com \
    --cc=dgdegra@tycho.nsa.gov \
    --cc=jeremy@goop.org \
    --cc=joe.jin@oracle.com \
    --cc=justing@spectralogic.com \
    --cc=konrad.wilk@oracle.com \
    --cc=konrad@darnok.org \
    --cc=lersek@redhat.com \
    --cc=virtualization@lists.linux-foundation.org \
    --cc=waldi@debian.org \
    --cc=weiyi.huang@gmail.com \
    --cc=xen-devel@lists.xen.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox