[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] Re: [PATCH 2/2] vnc: don't mess up with iohandlers in the v
From: |
Corentin Chary |
Subject: |
[Qemu-devel] Re: [PATCH 2/2] vnc: don't mess up with iohandlers in the vnc thread |
Date: |
Thu, 10 Mar 2011 13:54:12 +0000 |
On Thu, Mar 10, 2011 at 1:45 PM, Anthony Liguori <address@hidden> wrote:
> On 03/10/2011 07:06 AM, Paolo Bonzini wrote:
>>
>> On 03/10/2011 01:59 PM, Corentin Chary wrote:
>>>
>>> Instead, we now store the data in a temporary buffer, and use a socket
>>> pair to notify the main thread that new data is available.
>>
>> You can use a bottom half for this instead of a special socket. Signaling
>> a bottom half is async-signal- and thread-safe.
>
> Bottom halves are thread safe?
>
> I don't think so.
The bottom halves API is not thread safe, but calling
qemu_bh_schedule_idle() in another thread *seems* to be safe (here, it
would be protected from qemu_bh_delete() by vnc_lock_output()).
--
Corentin Chary
http://xf.iksaif.net
- [Qemu-devel] Re: [PATCH] vnc: threaded server depends on io-thread, (continued)
- [Qemu-devel] Re: [PATCH] vnc: threaded server depends on io-thread, Jan Kiszka, 2011/03/09
- [Qemu-devel] Re: [PATCH] vnc: threaded server depends on io-thread, Peter Lieven, 2011/03/09
- [Qemu-devel] [PATCH v2] vnc: threaded server depends on io-thread, Corentin Chary, 2011/03/09
- [Qemu-devel] Re: [PATCH v2] vnc: threaded server depends on io-thread, Corentin Chary, 2011/03/09
- [Qemu-devel] Re: [PATCH v2] vnc: threaded server depends on io-thread, Paolo Bonzini, 2011/03/09
- [Qemu-devel] Re: [PATCH v2] vnc: threaded server depends on io-thread, Corentin Chary, 2011/03/09
- [Qemu-devel] [PATCH 1/2] sockets: add qemu_socketpair(), Corentin Chary, 2011/03/10
- [Qemu-devel] [PATCH 2/2] vnc: don't mess up with iohandlers in the vnc thread, Corentin Chary, 2011/03/10
- [Qemu-devel] Re: [PATCH 2/2] vnc: don't mess up with iohandlers in the vnc thread, Paolo Bonzini, 2011/03/10
- [Qemu-devel] Re: [PATCH 2/2] vnc: don't mess up with iohandlers in the vnc thread, Anthony Liguori, 2011/03/10
- [Qemu-devel] Re: [PATCH 2/2] vnc: don't mess up with iohandlers in the vnc thread,
Corentin Chary <=
- [Qemu-devel] Re: [PATCH 2/2] vnc: don't mess up with iohandlers in the vnc thread, Paolo Bonzini, 2011/03/10
- [Qemu-devel] Re: [PATCH 2/2] vnc: don't mess up with iohandlers in the vnc thread, Paolo Bonzini, 2011/03/10
- [Qemu-devel] Re: [PATCH 2/2] vnc: don't mess up with iohandlers in the vnc thread, Peter Lieven, 2011/03/10
- [Qemu-devel] [PATCH v5] vnc: don't mess up with iohandlers in the vnc thread, Corentin Chary, 2011/03/10
- [Qemu-devel] Re: [PATCH v5] vnc: don't mess up with iohandlers in the vnc thread, Corentin Chary, 2011/03/14
- [Qemu-devel] Re: [PATCH v5] vnc: don't mess up with iohandlers in the vnc thread, Peter Lieven, 2011/03/14
- [Qemu-devel] Re: [PATCH v5] vnc: don't mess up with iohandlers in the vnc thread, Peter Lieven, 2011/03/15
- [Qemu-devel] Re: [PATCH v5] vnc: don't mess up with iohandlers in the vnc thread, Peter Lieven, 2011/03/15
[Qemu-devel] Re: segmentation fault in qemu-kvm-0.14.0, Peter Lieven, 2011/03/09
[Qemu-devel] Re: segmentation fault in qemu-kvm-0.14.0, Peter Lieven, 2011/03/09