Received: from eggs.gnu.org ([208.118.235.92]:58745) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UCoGZ-0004P4-HB for qemu-devel@nongnu.org; Tue, 05 Mar 2013 04:34:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UCoGY-0000k3-3u for qemu-devel@nongnu.org; Tue, 05 Mar 2013 04:34:35 -0500 Received: from mail-we0-x233.google.com ([2a00:1450:400c:c03::233]:63231) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UCoGX-0000jv-Tx for qemu-devel@nongnu.org; Tue, 05 Mar 2013 04:34:34 -0500 Received: by mail-we0-f179.google.com with SMTP id p43so5885255wea.10 for ; Tue, 05 Mar 2013 01:34:33 -0800 (PST) Date: Tue, 5 Mar 2013 10:34:30 +0100 From: Stefan Hajnoczi Message-ID: <20130305093430.GC1938@stefanha-thinkpad.redhat.com> References: <20130301152934.22476.82209.stgit@fimbulvetr.bsc.es> <20130304142214.GA3981@stefanha-thinkpad.redhat.com> <87d2ve6frc.fsf@fimbulvetr.bsc.es> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <87d2ve6frc.fsf@fimbulvetr.bsc.es> Subject: Re: [Qemu-devel] [PATCH v11 0/7] trace: Generic event state description List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?iso-8859-1?Q?Llu=EDs?= Vilanova Cc: Blue Swirl , qemu-devel@nongnu.org On Mon, Mar 04, 2013 at 10:01:43PM +0100, Lluís Vilanova wrote: > Stefan Hajnoczi writes: > > > On Fri, Mar 01, 2013 at 04:29:35PM +0100, Lluís Vilanova wrote: > >> Provides a generic event state description structure (TraceEvent) and a more > >> detailed event control and query interface. > >> > >> This is achieved by creating a new "non-public" tracing backend (i.e., not > >> selectable by the user at configure time) that will generate the appropriate > >> event description information. > >> > >> Signed-off-by: Lluís Vilanova > >> --- > >> > >> Changes in v11: > >> > >> * Rebase on a4bcea3 from master. > > > Hi Lluís, > > Thanks for rebasing. Unfortunately I still hit the hang on shutdown > > with the simple trace backend. > > > Steps to reproduce: > > $ ./configure --target-list=x86_64-softmmu --enable-trace-backend=simple > > $ make > > $ cat my-events > > bdrv_open_common > > $ x86_64-softmmu/qemu-system-x86_64 \ > > -enable-kvm -m 1024 \ > > -trace events=my-events \ > > -drive if=virtio,cache=none,file=test.img > > Ctrl-Alt-2 > > (qemu) quit > > ...hang... > > > Please let me know if you are able to reproduce it. qemu.git/master > > does not behave this way. > > I've been unable to reproduce it with v11, but was able to using v10 (although > only a couple of times). > > What I saw in v10 looked like a deadlock between 'flush_trace_file' and > 'wait_for_trace_records_available' (both use 'trace_lock'), but I only was able > to reproduce it a couple of times, so I couldn't haunt the problem down. > > After a quick re-read of the patches, the changes should have no effect on how > the mutexes in the "simple" backend are handled, so maybe the problem is not > related to this change (it just makes it more frequent in your build). I'll take a look here since it reproduces every time on this host. > Could it be possible that you exit QEMU before calling 'trace_backend_init'? > (as unlikely as it might be) No, the guest is running at the BIOS prompt. Stefan