From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([209.51.188.92]:45322) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ghu0Y-00026y-07 for qemu-devel@nongnu.org; Fri, 11 Jan 2019 05:25:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ghu0X-0000oH-9e for qemu-devel@nongnu.org; Fri, 11 Jan 2019 05:25:45 -0500 Received: from mx1.redhat.com ([209.132.183.28]:48508) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ghu0X-0000nv-2Q for qemu-devel@nongnu.org; Fri, 11 Jan 2019 05:25:45 -0500 References: <000601d4a8e8$a8a10170$f9e30450$@ru> From: Paolo Bonzini Message-ID: Date: Fri, 11 Jan 2019 11:25:38 +0100 MIME-Version: 1.0 In-Reply-To: <000601d4a8e8$a8a10170$f9e30450$@ru> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH v3 0/4] Introduce attributes for timers subsystem and remove QEMU_CLOCK_VIRTUAL_EXT clock type List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Pavel Dovgalyuk , 'Artem Pisarenko' , qemu-devel@nongnu.org Cc: 'Pavel Dovgalyuk' On 10/01/19 14:30, Pavel Dovgalyuk wrote: > Now timerlist_deadline_ns uses all virtual timers for deadline calculat= ion (including external > ones). > qemu_start_warp_timer uses the deadline for setting warp timer (which s= hould be deterministic). Can you introduce a variant of qemu_clock_deadline_ns_all that ignores external timers, and use it in qemu_start_warp_timer? timerlist_deadline_ns can be made static, so adding a bool argument to it is not a big issue for API cleanliness. In fact, qemu_clock_deadline_ns_all is only ever used with QEMU_CLOCK_VIRTUAL, so you could also change it to uint64_t virtual_clock_deadline_ns(bool include_external); Paolo