All of lore.kernel.org
 help / color / mirror / Atom feed
From: mdroth <mdroth@linux.vnet.ibm.com>
To: Liu Ping Fan <qemulist@gmail.com>
Cc: Stefan Hajnoczi <stefanha@gmail.com>,
	Paolo Bonzini <pbonzini@redhat.com>,
	qemu-devel@nongnu.org, Anthony Liguori <anthony@codemonkey.ws>,
	"Michael S. Tsirkin" <mst@redhat.com>
Subject: Re: [Qemu-devel] [PATCH 0/3] *** make netlayer re-entrant ***
Date: Tue, 5 Mar 2013 15:30:46 -0600	[thread overview]
Message-ID: <20130305213046.GI21850@vm> (raw)
In-Reply-To: <1362316883-7948-1-git-send-email-qemulist@gmail.com>

On Sun, Mar 03, 2013 at 09:21:19PM +0800, Liu Ping Fan wrote:
> From: Liu Ping Fan <pingfank@linux.vnet.ibm.com>
> 
> This series aim to make netlayer re-entrant, so netlayer can
> run out of biglock safely.

I think most of the locking considerations are still applicable either
way, but this series seems to be written under the assumption that
we'll be associating hubs/ports with separate AioContexts to facilitate
driving the event handling outside of the iothread. Is this the case?

>From what I gathered from the other thread, the path forward was to
replace the global iohandler list that we currently use to drive
NetClient events and replace it with a GSource and GMainContext, rather
than relying on AioContexts.

I do agree that the event handlers currently grouped under
iohandler.c:io_handlers look like a nice fit for AioContexts, but other
things like slirp and chardevs seem better served by a more general
mechanism like GSources/GMainContexts. The chardev flow control patches
seem to be doing something similar already as well.

> 
> Liu Ping Fan (3):
>   net: spread hub on AioContexts
>   net: introduce lock to protect NetClientState's send_queue
>   net: make netclient re-entrant with refcnt
> 
>  hw/qdev-properties-system.c |   15 ++++++
>  include/block/aio.h         |    1 +
>  include/net/net.h           |   12 +++++
>  include/net/queue.h         |   15 ++++++
>  main-loop.c                 |    5 ++
>  net/hub.c                   |   81 ++++++++++++++++++++++++++++++--
>  net/net.c                   |  109 ++++++++++++++++++++++++++++++++++++++----
>  net/queue.c                 |   19 ++++++--
>  net/slirp.c                 |    3 +-
>  9 files changed, 239 insertions(+), 21 deletions(-)
> 
> -- 
> 1.7.4.4
> 

  parent reply	other threads:[~2013-03-05 21:34 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-03 13:21 [Qemu-devel] [PATCH 0/3] *** make netlayer re-entrant *** Liu Ping Fan
2013-03-03 13:21 ` [Qemu-devel] [PATCH 1/3] net: spread hub on AioContexts Liu Ping Fan
2013-03-04 14:35   ` Stefan Hajnoczi
2013-03-05  2:45     ` liu ping fan
2013-03-03 13:21 ` [Qemu-devel] [PATCH 2/3] net: introduce lock to protect NetClientState's send_queue Liu Ping Fan
2013-03-04 14:49   ` Stefan Hajnoczi
2013-03-04 15:04     ` Paolo Bonzini
2013-03-05  2:45       ` liu ping fan
2013-03-05  8:23         ` Paolo Bonzini
2013-03-05  2:45     ` liu ping fan
2013-03-05  3:04       ` liu ping fan
2013-03-05 10:39         ` Stefan Hajnoczi
2013-03-03 13:21 ` [Qemu-devel] [PATCH 3/3] net: make netclient re-entrant with refcnt Liu Ping Fan
2013-03-04 15:19   ` Stefan Hajnoczi
2013-03-05  2:48     ` liu ping fan
2013-03-05 21:30 ` mdroth [this message]
2013-03-07  2:06   ` [Qemu-devel] [PATCH 0/3] *** make netlayer re-entrant *** liu ping fan
2013-03-07  9:31     ` Stefan Hajnoczi
2013-03-07  9:33     ` Stefan Hajnoczi
2013-03-11 15:18       ` Paolo Bonzini
2013-03-12  8:41     ` Paolo Bonzini

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=20130305213046.GI21850@vm \
    --to=mdroth@linux.vnet.ibm.com \
    --cc=anthony@codemonkey.ws \
    --cc=mst@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=qemulist@gmail.com \
    --cc=stefanha@gmail.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.