From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=36839 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PxfZv-0001bk-Tl for qemu-devel@nongnu.org; Thu, 10 Mar 2011 08:06:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PxfZv-0000FW-5v for qemu-devel@nongnu.org; Thu, 10 Mar 2011 08:06:56 -0500 Received: from mx1.redhat.com ([209.132.183.28]:17542) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PxfZu-0000FF-SW for qemu-devel@nongnu.org; Thu, 10 Mar 2011 08:06:55 -0500 Message-ID: <4D78CCDF.6090906@redhat.com> Date: Thu, 10 Mar 2011 14:06:39 +0100 From: Paolo Bonzini MIME-Version: 1.0 References: <4D7767C0.6060609@siemens.com> <1299761979-15197-2-git-send-email-corentin.chary@gmail.com> In-Reply-To: <1299761979-15197-2-git-send-email-corentin.chary@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Re: [PATCH 2/2] vnc: don't mess up with iohandlers in the vnc thread List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Corentin Chary Cc: Jan Kiszka , Anthony Liguori , qemu-devel , kvm@vger.kernel.org, Peter Lieven 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. Paolo