From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39051) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V2nnM-00087Y-NX for qemu-devel@nongnu.org; Fri, 26 Jul 2013 15:35:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V2nnL-0000R2-7u for qemu-devel@nongnu.org; Fri, 26 Jul 2013 15:35:20 -0400 Received: from mail.avalus.com ([2001:41c8:10:1dd::10]:54327) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V2niA-0006xa-OX for qemu-devel@nongnu.org; Fri, 26 Jul 2013 15:29:58 -0400 Date: Fri, 26 Jul 2013 20:29:44 +0100 From: Alex Bligh Message-ID: <3AF8AF969F39DAB555A8E4BE@nimrod.local> In-Reply-To: <51F249D2.7090101@siemens.com> References: <1374396185-10870-1-git-send-email-pingfank@linux.vnet.ibm.com> <20130725120530.GJ21033@stefanha-thinkpad.redhat.com> <51F11AFB.9040008@siemens.com> <1A5D30F9703985AD026648F0@nimrod.local> <51F249D2.7090101@siemens.com> 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: Jan Kiszka Cc: Kevin Wolf , Stefan Hajnoczi , Alex Bligh , Stefan Hajnoczi , Liu Ping Fan , qemu-devel@nongnu.org, Anthony Liguori , Paolo Bonzini Jan, --On 26 July 2013 12:05:06 +0200 Jan Kiszka wrote: >>>> I would happily at a QEMUClock of each type to AioContext. They are >>>> after >>>> all pretty lightweight. >>> >>> What's the point of adding tones of QEMUClock instances? Considering >>> proper abstraction, how are they different for each AioContext? Will >>> they run against different clock sources, start/stop at different times? >>> If the answer is "they have different timer list", then fix this >>> incorrect abstraction. >> >> Even if I fix the abstraction, there is a question of whether it is >> necessary to have more than one timer list per AioContext, because >> the timer list is fundamentally per clock-source. > > So far. Once we support different handler thread for timers, there will > be more lists than clock sources. Right. So my PATCHv4 series breaks up QEMUClock into QEMUClock and QEMUTimerList: http://lists.nongnu.org/archive/html/qemu-devel/2013-07/msg04887.html Unfortunately I've needed to keep qemu_new_timer AND qemu_new_timer_timerlist about to avoid horrendous git stats due to the consequent API changes (I did it, but you don't want to see it), and these have several variants. Apart from that it wasn't too bad. -- Alex Bligh