Received: from [140.186.70.92] (port=32960 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Py2Ng-0007VU-BI for qemu-devel@nongnu.org; Fri, 11 Mar 2011 08:27:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Py2Nf-0003VH-HL for qemu-devel@nongnu.org; Fri, 11 Mar 2011 08:27:48 -0500 Received: from mail-fx0-f45.google.com ([209.85.161.45]:54692) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Py2Nf-0003V7-Cp for qemu-devel@nongnu.org; Fri, 11 Mar 2011 08:27:47 -0500 Received: by fxm2 with SMTP id 2so1021565fxm.4 for ; Fri, 11 Mar 2011 05:27:46 -0800 (PST) Date: Fri, 11 Mar 2011 13:57:17 +0100 From: "Edgar E. Iglesias" Message-ID: <20110311125717.GB13236@edde.se.axis.com> References: <1299759171-26095-1-git-send-email-pbonzini@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1299759171-26095-1-git-send-email-pbonzini@redhat.com> Subject: [Qemu-devel] Re: [PATCH v2 0/3] really fix -icount with iothread List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: jan.kiszka@web.de, qemu-devel@nongnu.org On Thu, Mar 10, 2011 at 01:12:48PM +0100, Paolo Bonzini wrote: > This is a "real" fix for -icount, real in the sense that it > works in all cases including those that weren't fixed by my > first attempt. > > Patch 1 is the three-line fix. With that in, patch 2 can revert > the previous attempt(s). Finally, patch 3 makes the icount code > clearer by finishing the bugfix/reorganization of qemu_next_deadline > vs. qemu_next_alarm_deadline. > > v1->v2: > reordered patches, renamed qemu_next_deadline Hi Paulo, I gave this patchset a run and it runs icount and iothread very fast in all my testcases. But, it suffers from the problem that commit 225d02cd1a34d5d87e8acefbf8e244a5d12f5f8c tried to fix. If the virtual CPU goes to sleep waiting for a future timer interrupt to wake it up, qemu deadlocks. The timer interrupt never comes because time is driven by icount, but the vCPU doesn't run any insns. Cheers