From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JoDST-00061l-7y for qemu-devel@nongnu.org; Tue, 22 Apr 2008 04:02:33 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JoDSS-00061H-G5 for qemu-devel@nongnu.org; Tue, 22 Apr 2008 04:02:32 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JoDSS-00061E-AU for qemu-devel@nongnu.org; Tue, 22 Apr 2008 04:02:32 -0400 Received: from bzq-179-150-194.static.bezeqint.net ([212.179.150.194] helo=il.qumranet.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JoDSR-0001Rb-N4 for qemu-devel@nongnu.org; Tue, 22 Apr 2008 04:02:31 -0400 Message-ID: <480D9B79.4060101@qumranet.com> Date: Tue, 22 Apr 2008 11:02:01 +0300 From: Avi Kivity MIME-Version: 1.0 Subject: Re: [Qemu-devel] Linux SIGIO handling changes References: <12086832292508-git-send-email-mail@flac.kalibalik.dk> <480BBDE9.5040209@codemonkey.ws> <480C98B3.7050905@qumranet.com> <480CB61D.8050507@codemonkey.ws> In-Reply-To: <480CB61D.8050507@codemonkey.ws> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Anthony Liguori wrote: >> >> Even with a separate iothread one needs the signals, as there is no >> other race-free way to poll for both aio completions and fd readiness. > > Unless you emulate signalfd() using a thread. FWIW, I've been > thinking of implementing something similar to posix-aio (using a > thread-pool for AIO) for QEMU to get a bit more control for this sort > of thing. > Yes, of course. It's still a separate thread, but as it's hidden from the main logic, that's no problem. -- error compiling committee.c: too many arguments to function