Re: [Qemu-devel] [PATCH v2 0/3] Make thread pool implementation modular

2013-12-05 Thread Matthias Brugger
2013/11/11 Stefan Hajnoczi : > On Mon, Nov 11, 2013 at 11:00:45AM +0100, Matthias Brugger wrote: >> 2013/11/5 Stefan Hajnoczi : >> > I'd also like to see the thread pool implementation you wish to add >> > before we add a layer of indirection which has no user

Re: [Qemu-devel] [PATCH v2 0/3] Make thread pool implementation modular

2013-11-11 Thread Matthias Brugger
2013/11/5 Stefan Hajnoczi : > On Mon, Nov 04, 2013 at 11:28:41AM +0100, Matthias Brugger wrote: >> v2: >> - fix issues found by checkpatch.pl >> - change the descritpion of patch 3 >> >> This patch series makes the thread pool implementation modular. >>

[Qemu-devel] [PATCH v2 2/3] Block layer uses modular thread pool

2013-11-04 Thread Matthias Brugger
With this patch, the calls to the thread pool functions pass through the new modular thread pool implementation. Signed-off-by: Matthias Brugger --- async.c | 4 ++-- block/raw-posix.c | 15 +++ block/raw-win32.c | 9 +++-- include/block/aio.h | 2

[Qemu-devel] [PATCH v2 1/3] Make thread pool implementation modular

2013-11-04 Thread Matthias Brugger
This patch introduces function pointers for the thread pool, so that it's implementation can be set at run-time. Signed-off-by: Matthias Brugger --- include/block/thread-pool.h | 11 +++ thread-pool.c | 33 + 2 files changed, 44 inser

[Qemu-devel] [PATCH v2 3/3] Add workerthreads configuration option

2013-11-04 Thread Matthias Brugger
This patch allows to choose at the command line level which thread pool implementation will be used by every block device. Signed-off-by: Matthias Brugger --- blockdev.c | 13 + qemu-options.hx | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/blockdev.c b

[Qemu-devel] [PATCH v2 0/3] Make thread pool implementation modular

2013-11-04 Thread Matthias Brugger
implemented. It will allow to implement approaches like paravirtualized block requests [1]. [1] http://www.linux-kvm.org/wiki/images/5/53/2012-forum-Brugger-lightningtalk.pdf Matthias Brugger (3): Make thread pool implementation modular Block layer uses modular thread pool Add workerthreads

[Qemu-devel] [PATCH 1/3] Make thread pool implementation modular

2013-11-01 Thread Matthias Brugger
This patch introduces function pointers for the thread pool, so that it's implementation can be set at run-time. Signed-off-by: Matthias Brugger --- include/block/thread-pool.h | 9 + thread-pool.c | 32 2 files changed, 41 inser

[Qemu-devel] [PATCH 2/3] Block layer uses modular thread pool

2013-11-01 Thread Matthias Brugger
With this patch, the calls to the thread pool functions pass through the new modular thread pool implementation. Signed-off-by: Matthias Brugger --- async.c | 4 ++-- block/raw-posix.c | 15 +++ block/raw-win32.c | 9 +++-- include/block/aio.h | 2

[Qemu-devel] [PATCH 3/3] Add workerthreads configuration option

2013-11-01 Thread Matthias Brugger
This patch allows the definition which thread pool will be used by every block device. The defintion of the workerthreads option allows this at the command line level. At the moment only the thread pool implementation "pool" can be chosen. Signed-off-by: Matthias Brugger ---

[Qemu-devel] Make thread pool implementation modular

2013-11-01 Thread Matthias Brugger
This patch series makes the thread pool implementation modular. This allows each drive to use a special implementation. The patch series prepares qemu to be able to include thread pools different the one actually implemented. It will allow to implement approaches like paravirtualized block request