[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [patch 1/2] qemu: sem/thread helpers
From: |
Marcelo Tosatti |
Subject: |
Re: [Qemu-devel] [patch 1/2] qemu: sem/thread helpers |
Date: |
Wed, 11 Mar 2009 13:58:34 -0300 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
On Wed, Mar 11, 2009 at 04:48:01PM +0000, Paul Brook wrote:
> > +QemuSem qemu_sem;
>
> It's entirely unclear what is actually protected by the semaphore.
Everything at the moment.
> What exactly does the IO thread do? AFAICS device MMIO is still run from
> within the CPU thread. Device code is not threadsafe (and probably never will
> be), so you can't run any of the device callbacks in the IO thread either.
> Doesn't seem like there's a lot left for it to do...
There are things which can run in parallel. VNC dirty update, read()'ing
of data into QEMU, for two examples.
[Qemu-devel] [patch 2/2] qemu: separate thread for io, Marcelo Tosatti, 2009/03/11