Received: from eggs.gnu.org ([140.186.70.92]:58993) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QRTon-00039g-HZ for qemu-devel@nongnu.org; Tue, 31 May 2011 14:37:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QRTok-0002is-QA for qemu-devel@nongnu.org; Tue, 31 May 2011 14:37:28 -0400 Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=iso-8859-1 From: Alexander Graf In-Reply-To: <4DE50DC5.2060806@codemonkey.ws> Date: Tue, 31 May 2011 18:16:15 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <35D43777-76C2-415D-83FF-143C4D2EF774@suse.de> References: <1306705831-59385-1-git-send-email-andreas.faerber@web.de> <4DE4F16D.6030009@codemonkey.ws> <4DE4F5E2.5020906@siemens.com> <4DE4FAA1.7080109@codemonkey.ws> <4DE5011C.80000@siemens.com> <98DD53CD-B6E2-4739-A952-0F21019485A4@suse.de> <4DE50DC5.2060806@codemonkey.ws> 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" , Jan Kiszka , Marcelo Tosatti , "qemu-devel@nongnu.org" , =?iso-8859-1?Q?Andreas_F=E4rber?= , Avi Kivity On 31.05.2011, at 17:48, Anthony Liguori wrote: > On 05/31/2011 10:44 AM, Alexander Graf wrote: >>=20 >> On 31.05.2011, at 16:54, Jan Kiszka wrote: >>=20 >>> On 2011-05-31 16:26, Anthony Liguori wrote: >>>> On 05/31/2011 09:06 AM, Jan Kiszka wrote: >>>>> On 2011-05-31 15:47, Anthony Liguori wrote: >>>>>> On 05/29/2011 04:50 PM, Andreas F=E4rber wrote: >>>>>>> BeOS and Haiku don't define SIGIO. When undefined, it won't = arrive >>>>>>> and doesn't need to be blocked. >>>>>>>=20 >>>>>>> Signed-off-by: Andreas F=E4rber >>>>>>=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 >>>>>> this is a hold over from the pre-I/O thread days where we = selectively >>>>>> set SIGIO on certain file descriptors to make sure that when an = IO fd >>>>>> became readable, we received a signal to break out of the KVM = emulation >>>>>> loop. >>>>>>=20 >>>>>> Can the folks on CC confirm/deny? >>>>>>=20 >>>>>> I can't see any use of SIGIO in the current source tree. >>>>>=20 >>>>> At least qemu-timer.c uses SIGIO in HPET mode. That only applies = to >>>>> Linux hosts, though. >>>>=20 >>>> Is there any reason we still carry multiple timer implementations = these >>>> days? >>>>=20 >>>> HPET shouldn't be any better than dynticks. >>>=20 >>> On any recent kernel, for sure. BTW, the same applies to the RTC = timer. >>=20 >> So the obvious change would be to introduce CONFIG_HPET, ifdef the = SIGIO handling on that and also ifdef the host hpet handling code on it? = That way it's documented well and can preferably even be turned off with = --disable-host-hpet during configure time, which we can then slowly turn = to the default. >=20 > Or just remove hpet and rtc. >=20 > Does anyone really object to that? Do RHEL5 and SLES10 support dynticks? If yes, no objections. They're the = oldest really supported distros we should possibly remotely even care = about. Alex