From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53870) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V1dT0-0003mJ-3w for qemu-devel@nongnu.org; Tue, 23 Jul 2013 10:21:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V1dSy-00011V-UW for qemu-devel@nongnu.org; Tue, 23 Jul 2013 10:21:30 -0400 Received: from mail.avalus.com ([2001:41c8:10:1dd::10]:45578) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V1dSy-00011M-ON for qemu-devel@nongnu.org; Tue, 23 Jul 2013 10:21:28 -0400 Date: Tue, 23 Jul 2013 15:21:15 +0100 From: Alex Bligh Message-ID: <15017F465558915437B2AE83@nimrod.local> In-Reply-To: References: <1374396185-10870-1-git-send-email-pingfank@linux.vnet.ibm.com> <429B80A9A0DBF7FBF05E7C5A@nimrod.local> <628DFBF37B094813C72B6DBF@Ximines.local> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: Re: [Qemu-devel] [RFC 0/8] arm AioContext with its own timer stuff Reply-To: Alex Bligh List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: liu ping fan Cc: Kevin Wolf , Stefan Hajnoczi , Alex Bligh , Jan Kiszka , qemu-devel@nongnu.org, Anthony Liguori , Paolo Bonzini --On 23 July 2013 10:53:26 +0800 liu ping fan wrote: >>> Firstly, I can't see the advantage of keeping the alarm_timer stuff >>> around at all if we can delete it. Save, of course, that on systems >>> that don't have ppoll or equivalent you lose sub-millisecond timing by >>> deleting them. >>> > The scenior I can figure out is if adopting timeout of poll, then when > changing the deadline, we need to invoke poll, and set the new > timeout, right? Are you asking how I deal with modification of the timeout when the poll is already running? If so, I use the event notifier to end the current poll. It will then (presumably) repoll with a recalculated timeout. -- Alex Bligh