qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Stefan Hajnoczi <stefanha@gmail.com>
To: Paolo Bonzini <pbonzini@redhat.com>
Cc: Kevin Wolf <kwolf@redhat.com>, Fam Zheng <famz@redhat.com>,
	qemu-devel@nongnu.org, Stefan Hajnoczi <stefanha@redhat.com>,
	Max Reitz <mreitz@redhat.com>
Subject: Re: [Qemu-devel] [RFC] dataplane: IOThreads and writing dataplane-capable code
Date: Thu, 8 May 2014 15:18:52 +0200	[thread overview]
Message-ID: <20140508131852.GA13226@stefanha-thinkpad.redhat.com> (raw)
In-Reply-To: <536B8258.2020902@redhat.com>

On Thu, May 08, 2014 at 03:10:48PM +0200, Paolo Bonzini wrote:
> Il 08/05/2014 15:08, Kevin Wolf ha scritto:
> >Am 08.05.2014 um 12:16 hat Stefan Hajnoczi geschrieben:
> >>Side note: The main loop and IOThread are both event loops but their code is
> >>not shared completely.  Sometimes it is useful to remember that although they
> >>are conceptually similar they are currently not interchangeable.
> >
> >We need to be careful with the terminology. The choice made here, that
> >the main loop thread is not an IOThread, is somewhat unfortunate,
> >because traditionally, the "I/O thread" has been what the main loop
> >thread is called (in contrast to vcpu threads).
> 
> Note that the main loop thread could definitely be an IOThread,
> since it has an AioContext and the IOThread is just a QOM veneer for
> AioContext.  It's just not done yet.

Yes, it's definitely a goal to unify the event loop implementations in
QEMU.  The main loop is more than just an AioContext, it's a glib event
loop.  The AioContext is a custom event loop that can be added to a glib
event loop (as a GSource) but also supports BHs and high-resolution
timers.

Stefan

  reply	other threads:[~2014-05-08 13:19 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-08 10:16 [Qemu-devel] [RFC] dataplane: IOThreads and writing dataplane-capable code Stefan Hajnoczi
2014-05-08 11:33 ` Fam Zheng
2014-05-08 11:56   ` Stefan Hajnoczi
2014-05-08 12:12     ` Paolo Bonzini
2014-05-08 13:08 ` Kevin Wolf
2014-05-08 13:10   ` Paolo Bonzini
2014-05-08 13:18     ` Stefan Hajnoczi [this message]
2014-05-08 13:44 ` Dr. David Alan Gilbert
2014-05-08 14:42   ` Stefan Hajnoczi
2014-05-08 18:58     ` Dr. David Alan Gilbert
2014-05-09  8:20       ` Stefan Hajnoczi

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=20140508131852.GA13226@stefanha-thinkpad.redhat.com \
    --to=stefanha@gmail.com \
    --cc=famz@redhat.com \
    --cc=kwolf@redhat.com \
    --cc=mreitz@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=stefanha@redhat.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 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).