Re: [Qemu-devel] [RFC 3/7] iothread: add I/O thread object

2013-12-13 Thread Stefan Hajnoczi
On Thu, Dec 12, 2013 at 12:00:12PM -0600, Michael Roth wrote: > Quoting Stefan Hajnoczi (2013-12-12 07:19:40) > > +static void *iothread_run(void *opaque) > > +{ > > +IOThread *iothread = opaque; > > + > > +for (;;) { > > +/* TODO can we optimize away acquire/release to only happen

Re: [Qemu-devel] [RFC 3/7] iothread: add I/O thread object

2013-12-12 Thread Michael Roth
Quoting Stefan Hajnoczi (2013-12-12 07:19:40) > This is a stand-in for Michael Roth's QContext. I expect this to be > replaced once QContext is completed. > > The IOThread object is an AioContext event loop thread. This patch adds > the concept of multiple event loop threads, allowing users to d

[Qemu-devel] [RFC 3/7] iothread: add I/O thread object

2013-12-12 Thread Stefan Hajnoczi
This is a stand-in for Michael Roth's QContext. I expect this to be replaced once QContext is completed. The IOThread object is an AioContext event loop thread. This patch adds the concept of multiple event loop threads, allowing users to define them. When SMP guests run on SMP hosts it makes s