qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] monitor: Protect outbuf from concurrent access


From: Anthony Liguori
Subject: Re: [Qemu-devel] [PATCH] monitor: Protect outbuf from concurrent access
Date: Fri, 02 Sep 2011 10:37:23 -0500
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110516 Lightning/1.0b2 Thunderbird/3.1.10

On 09/02/2011 10:31 AM, Paolo Bonzini wrote:
On 09/02/2011 05:18 PM, Gerd Hoffmann wrote:

Can you just use a bottom half to defer this work to the I/O thread?
Bottom half scheduling has to be signal safe which means it will also be
thread safe.

Not that straight forward as I would have to pass arguments to the
bottom half.

Can you add a variant of qemu_bh_new that accepts a sizeof for the new
bottom half? Then the bottom half itself can be passed as the opaque and
used for the arguments.

Bottom halves are opaque to the caller.

Passing arguments would require careful consideration of locking too. I think the best way to resolve this is to fix libspice and not try to work around the problem in QEMU.

Regards,

Anthony Liguori


Paolo




reply via email to

[Prev in Thread] Current Thread [Next in Thread]