Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LymnJ-00007d-EJ for qemu-devel@nongnu.org; Tue, 28 Apr 2009 08:52:17 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LymnE-0008UU-9q for qemu-devel@nongnu.org; Tue, 28 Apr 2009 08:52:16 -0400 Received: from [199.232.76.173] (port=48699 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LymnD-0008U0-Tc for qemu-devel@nongnu.org; Tue, 28 Apr 2009 08:52:11 -0400 Received: from mx2.redhat.com ([66.187.237.31]:55912) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LymnD-0004de-DW for qemu-devel@nongnu.org; Tue, 28 Apr 2009 08:52:11 -0400 Date: Tue, 28 Apr 2009 09:51:46 -0300 From: Marcelo Tosatti Subject: Re: [Qemu-devel] KVM brokenness due to IO thread changes Message-ID: <20090428125146.GB19142@amt.cnet> References: <49F6B2D1.8070906@web.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <49F6B2D1.8070906@web.de> Content-Transfer-Encoding: quoted-printable List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jan Kiszka Cc: qemu-devel Jan, On Tue, Apr 28, 2009 at 09:40:01AM +0200, Jan Kiszka wrote: > Hi, >=20 > this is a heads-up, maybe someone has some time to look into this over > the day: I seems like the IO thread changes caused a few regressions to > the KVM mode. >=20 > When I keep this feature disabled, I see strange hick-ups of the event > delivery mechanism, and the guest stops once in a while for a second or > so. Attaching strace makes the whole process terminate early (looks lik= e > it triggers a race in the signal handling). And when I enable the IO > thread, I immediately get a deadlock on qemu_global_mutex. Yes its borked. The iothread should signal the vcpu thread whenever it wants to grab the mutex lock, because unlike kvm-userspace it does not drop the global mutex when entering guest mode (VCPU_RUN ioctl). Anthony will commit patches to fix that soon. >=20 > Moreover: > CC i386-softmmu/vl.o > /data/qemu/vl.c:4380: warning: =E2=80=98qemu_calculate_timeout=E2=80=99= defined but not used >=20 > Jan BTW, can you please review the changes made to the debugging logic in the main loop sometime? (there's a debug_requested global now).