qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Stefan Hajnoczi <stefanha@gmail.com>
To: "Lluís Vilanova" <vilanova@ac.upc.edu>
Cc: Blue Swirl <blauwirbel@gmail.com>, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH v11 0/7] trace: Generic event state description
Date: Tue, 5 Mar 2013 10:34:30 +0100	[thread overview]
Message-ID: <20130305093430.GC1938@stefanha-thinkpad.redhat.com> (raw)
In-Reply-To: <87d2ve6frc.fsf@fimbulvetr.bsc.es>

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 <vilanova@ac.upc.edu>
> >> ---
> >> 
> >> 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

  reply	other threads:[~2013-03-05  9:34 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-01 15:29 [Qemu-devel] [PATCH v11 0/7] trace: Generic event state description Lluís Vilanova
2013-03-01 15:29 ` [Qemu-devel] [PATCH v11 1/7] trace: [tracetool] Explicitly identify public backends Lluís Vilanova
2013-03-01 15:29 ` [Qemu-devel] [PATCH v11 2/7] trace: Provide a generic tracing event descriptor Lluís Vilanova
2013-03-01 15:29 ` [Qemu-devel] [PATCH v11 3/7] trace: Provide a detailed event control interface Lluís Vilanova
2013-03-01 15:29 ` [Qemu-devel] [PATCH v11 4/7] trace: [monitor] Use new " Lluís Vilanova
2013-03-01 15:30 ` [Qemu-devel] [PATCH v11 5/7] trace: [default] Port to generic event information and new " Lluís Vilanova
2013-03-01 15:30 ` [Qemu-devel] [PATCH v11 6/7] trace: [simple] " Lluís Vilanova
2013-03-01 15:30 ` [Qemu-devel] [PATCH v11 7/7] trace: [stderr] " Lluís Vilanova
2013-03-04 14:22 ` [Qemu-devel] [PATCH v11 0/7] trace: Generic event state description Stefan Hajnoczi
2013-03-04 21:01   ` Lluís Vilanova
2013-03-05  9:34     ` Stefan Hajnoczi [this message]
2013-03-05 10:33     ` Stefan Hajnoczi
2013-03-05 13:00       ` Lluís Vilanova

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130305093430.GC1938@stefanha-thinkpad.redhat.com \
    --to=stefanha@gmail.com \
    --cc=blauwirbel@gmail.com \
    --cc=qemu-devel@nongnu.org \
    --cc=vilanova@ac.upc.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).