]> git.proxmox.com Git - mirror_qemu.git/commit
iothread: add I/O thread object
authorStefan Hajnoczi <stefanha@redhat.com>
Mon, 3 Mar 2014 10:30:05 +0000 (11:30 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Thu, 13 Mar 2014 13:42:24 +0000 (14:42 +0100)
commitbe8d8537668c9be7a8dee6aed94b2b3f9fcd4a9f
treedce7a5c063e02a2cee81426212b434ea5af65eaa
parent98563fc3ec44c1becce6f1720ad6b0a82ed101b4
iothread: add I/O thread object

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 sense to instantiate multiple
IOThreads.  This spreads event loop processing across multiple cores.
Note that additional patches are required to actually bind a device to
an IOThread.

[Andreas Färber <afaerber@suse.de> pointed out that the embedded parent
object instance should be called "parent_obj" and have a newline
afterwards.  This patch has been changed to reflect this.
-- Stefan]

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Makefile.objs
include/sysemu/iothread.h [new file with mode: 0644]
iothread.c [new file with mode: 0644]