Received: from eggs.gnu.org ([2001:4830:134:3::10]:37053) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cnlMK-0004PS-Dj for qemu-devel@nongnu.org; Tue, 14 Mar 2017 08:15:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cnlMF-0002x1-HC for qemu-devel@nongnu.org; Tue, 14 Mar 2017 08:15:24 -0400 Received: from mx1.redhat.com ([209.132.183.28]:39854) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cnlMF-0002wd-Ay for qemu-devel@nongnu.org; Tue, 14 Mar 2017 08:15:19 -0400 References: <000601d29710$edf987b0$c9ec9710$@ru> <874lyxqpl4.fsf@linaro.org> <000001d29cbb$f396a800$dac3f800$@ru> From: Paolo Bonzini Message-ID: Date: Tue, 14 Mar 2017 13:15:16 +0100 MIME-Version: 1.0 In-Reply-To: <000001d29cbb$f396a800$dac3f800$@ru> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] -rtc clock=vm with -icount 1, sleep=off introduces unexpected delays in device interactions List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Pavel Dovgalyuk , =?UTF-8?Q?'Alex_Benn=c3=a9e'?= Cc: "'Nutaro, James J.'" , mttcg@greensocs.com, qemu-devel@nongnu.org On 14/03/2017 13:10, Pavel Dovgalyuk wrote: > This is not the same. > BQL helped in making execution deterministic - no io and timer > callbacks were performed while CPU is executing. > Now iothread and CPU thread work simultaneously and timers can't > query virtual time correctly, because (if we could query number of executed > instructions) it may have different values on different runs. > > I guess you'll have to bring kicking CPU back on iothread invocation > to make execution deterministic in icount mode. Timers are fixed by my patch. I/O should also work if its effects are only apparent at given QEMU_CLOCK_VIRTUAL values. Paolo