xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Paul Durrant <Paul.Durrant@citrix.com>
To: 'Joao Martins' <joao.m.martins@oracle.com>
Cc: Wei Liu <wei.liu2@citrix.com>, Xen-devel <xen-devel@lists.xen.org>
Subject: Re: [PATCH v3 0/1] netif: staging grants for I/O requests
Date: Mon, 18 Sep 2017 11:40:50 +0000	[thread overview]
Message-ID: <a39e0342df00496bb4eba1b2583cb820@AMSPEX02CL03.citrite.net> (raw)
In-Reply-To: <20170918113534.x2s7plrfnifdliev@paddy>

> -----Original Message-----
> From: Joao Martins [mailto:joao.m.martins@oracle.com]
> Sent: 18 September 2017 12:36
> To: Paul Durrant <Paul.Durrant@citrix.com>
> Cc: Xen-devel <xen-devel@lists.xen.org>; Wei Liu <wei.liu2@citrix.com>;
> Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
> Subject: Re: [PATCH v3 0/1] netif: staging grants for I/O requests
> 
> On Mon, Sep 18, 2017 at 09:45:06AM +0000, Paul Durrant wrote:
> > > -----Original Message-----
> > > From: Joao Martins [mailto:joao.m.martins@oracle.com]
> > > Sent: 13 September 2017 19:11
> > > To: Xen-devel <xen-devel@lists.xen.org>
> > > Cc: Wei Liu <wei.liu2@citrix.com>; Paul Durrant
> <Paul.Durrant@citrix.com>;
> > > Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>; Joao Martins
> > > <joao.m.martins@oracle.com>
> > > Subject: [PATCH v3 0/1] netif: staging grants for I/O requests
> > >
> > > Hey,
> > >
> > > This is v3 taking into consideration all comments received from v2
> (changelog
> > > in the first patch). The specification is right after the diffstat.
> > >
> > > Reference implementation also here (on top of net-next):
> > >
> > > https://github.com/jpemartins/linux.git xen-net-stg-gnts-v3
> > >
> > > Although I am satisfied with how things are being done above, I wanted
> > > to request some advise/input on whether there could be a simpler way
> of
> > > achieving the same. Specifically because these control messages
> > > adds up significant code on the frontend to pregrant, and in other cases
> the
> > > control message might be limitative if frontend tries to keep a dinamically
> > > changed buffer pool in different queues. *Maybe* it could be simpler to
> > > adjust
> > > the TX/RX ring ABI in a compatible matter (Disclaimer: I haven't
> implemented
> > > this just yet):
> >
> > But the whole point of pre-granting is to separate the grant/ungrant
> > operations from the rx/tx operations, right?
> 
> /nods
> 
> > So, why would the extra
> > control messages really be an overhead?
> 
> It's not that it's an overhead, but more like the bigger amount of code
> to pregrant once ... and so I was trying to figure out if there was some
> simplification/flexibility that could be made; in the meantime I was
> experimenting a bit and it looks that won't probably make too much
> difference implementation-wise while implying higher complexity on the
> datapath and also weaker semantics.
> 
> With things like AF_PACKET v4 (pre mapping buffers) appearing in linux
> mid term, it will require stronger semantics like those provided by the
> control ring ops rather than these flags I was suggesting below.
> 
> The advantage with the flags though is that add/del mappings would be
> (by design) on the context of the queue rather than in the control
> ring thread handling it. But maybe this can be considered implementation
> specific behaviour too and we could find ways to handle that better if it
> ever becomes a problem e.g. doing the pre{un,}maps on dealloc thread
> context.
> 

Yes, let's not introduce unnecessary complexity at this stage. If optimizations are needed then they can be dealt with later.

Cheers,

  Paul

> Joao
> 

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

  reply	other threads:[~2017-09-18 11:40 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-13 18:10 [PATCH v3 0/1] netif: staging grants for I/O requests Joao Martins
2017-09-13 18:10 ` [PATCH v3 1/1] public/io/netif.h: add gref mapping control messages Joao Martins
2017-09-18  9:53   ` Paul Durrant
2017-09-18 11:56     ` Joao Martins
2017-09-18 12:11       ` Paul Durrant
2017-09-18 14:51         ` Joao Martins
2017-09-18  9:45 ` [PATCH v3 0/1] netif: staging grants for I/O requests Paul Durrant
2017-09-18 11:35   ` Joao Martins
2017-09-18 11:40     ` Paul Durrant [this message]
2017-09-29 17:53 ` Konrad Rzeszutek Wilk

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=a39e0342df00496bb4eba1b2583cb820@AMSPEX02CL03.citrite.net \
    --to=paul.durrant@citrix.com \
    --cc=joao.m.martins@oracle.com \
    --cc=wei.liu2@citrix.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;
as well as URLs for NNTP newsgroup(s).