From: "Richard W.M. Jones" <rjones@redhat.com>
To: qemu-devel@nongnu.org, Frediano Ziglio <fziglio@redhat.com>
Cc: pbonzini@redhat.com
Subject: [Qemu-devel] Random hangs in the emulated ISA serial console, caused by glib2 change
Date: Fri, 24 Mar 2017 16:32:38 +0000 [thread overview]
Message-ID: <20170324163238.GH13825@redhat.com> (raw)
Hello Frediano,
I'm tracking a rather difficult bug in qemu, where it appears that
events in the glib loop are "lost". This is characterized by the
emulated qemu serial console hanging until someone presses a key.
This is normally disguised in the busy main loop of qemu (since some
other event turns up often and "bumps" things along), but in my
application there are no processes running inside the qemu guest and
so I hit these hangs rather frequently.
The BZ with all the details is:
https://bugzilla.redhat.com/show_bug.cgi?id=1435432
I eventually tracked this down to a single glib2 commit:
e4ee3079c5afc3c1c3d2415f20c3e8605728f074 is the first bad commit
commit e4ee3079c5afc3c1c3d2415f20c3e8605728f074
Author: Frediano Ziglio <fziglio@redhat.com>
Date: Mon Jan 25 14:59:24 2016 +0000
Do not wake up main loop if change is from same thread
This reduce the frequency the loop is waked up adding and removing
file descriptors or timeouts.
Considering that to support recursion events are removed from list and
added again this reduce iteration number a lot.
Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
https://bugzilla.gnome.org/show_bug.cgi?id=761102
:040000 040000 bb42e86b5a2c962322a84b52c939f16df2c43034 8d31e66a35fb3ae1e72fa7a34ad861bfd332bd84 M glib
Reverting the commit on top of glib2 git HEAD fixes the problem
in qemu.
So I guess I have a question: Is this change supposed to be
completely neutral to programs using glib, or should qemu make
a corresponding change?
Rich.
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-p2v converts physical machines to virtual machines. Boot with a
live CD or over the network (PXE) and turn machines into KVM guests.
http://libguestfs.org/virt-v2v
reply other threads:[~2017-03-24 16:32 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20170324163238.GH13825@redhat.com \
--to=rjones@redhat.com \
--cc=fziglio@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
/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).