From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37825) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cnlPG-0001p8-Ev for qemu-devel@nongnu.org; Tue, 14 Mar 2017 08:18:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cnlPB-0003oJ-Hr for qemu-devel@nongnu.org; Tue, 14 Mar 2017 08:18:26 -0400 Received: from mail.ispras.ru ([83.149.199.45]:52732) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cnlPB-0003o9-9y for qemu-devel@nongnu.org; Tue, 14 Mar 2017 08:18:21 -0400 From: "Pavel Dovgalyuk" References: <000601d29710$edf987b0$c9ec9710$@ru> <874lyxqpl4.fsf@linaro.org> <000001d29cbb$f396a800$dac3f800$@ru> In-Reply-To: Date: Tue, 14 Mar 2017 15:18:22 +0300 Message-ID: <000801d29cbd$12ab64a0$38022de0$@ru> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Language: ru 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: 'Paolo Bonzini' , =?utf-8?Q?'Alex_Benn=C3=A9e'?= Cc: "'Nutaro, James J.'" , mttcg@greensocs.com, qemu-devel@nongnu.org > From: Paolo Bonzini [mailto:pbonzini@redhat.com] > 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. Can you point me on that patch? Pavel Dovgalyuk