From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:40521) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QRPab-0002Xk-4c for qemu-devel@nongnu.org; Tue, 31 May 2011 10:06:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QRPaa-0007GB-1c for qemu-devel@nongnu.org; Tue, 31 May 2011 10:06:33 -0400 Message-ID: <4DE4F5E2.5020906@siemens.com> Date: Tue, 31 May 2011 16:06:26 +0200 From: Jan Kiszka MIME-Version: 1.0 References: <1306705831-59385-1-git-send-email-andreas.faerber@web.de> <4DE4F16D.6030009@codemonkey.ws> In-Reply-To: <4DE4F16D.6030009@codemonkey.ws> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH] Use SIGIO with caution List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: "qemu-trivial@nongnu.org" , =?UTF-8?B?QW5kcmVhcyBGw6RyYmVy?= , Marcelo Tosatti , "qemu-devel@nongnu.org" , Avi Kivity On 2011-05-31 15:47, Anthony Liguori wrote: > On 05/29/2011 04:50 PM, Andreas F=C3=A4rber wrote: >> BeOS and Haiku don't define SIGIO. When undefined, it won't arrive >> and doesn't need to be blocked. >> >> Signed-off-by: Andreas F=C3=A4rber >=20 > Anything to do with signal masks is never a trivial patch BTW... >=20 > But I actually think explicit handling of SIGIO is unneeded. I think=20 > this is a hold over from the pre-I/O thread days where we selectively=20 > set SIGIO on certain file descriptors to make sure that when an IO fd=20 > became readable, we received a signal to break out of the KVM emulation= =20 > loop. >=20 > Can the folks on CC confirm/deny? >=20 > I can't see any use of SIGIO in the current source tree. At least qemu-timer.c uses SIGIO in HPET mode. That only applies to Linux hosts, though. Jan --=20 Siemens AG, Corporate Technology, CT T DE IT 1 Corporate Competence Center Embedded Linux