From: "Michael S. Tsirkin" <mst@redhat.com>
To: Paolo Bonzini <pbonzini@redhat.com>
Cc: Mark McLoughlin <markmc@redhat.com>, qemu-devel@nongnu.org
Subject: [Qemu-devel] Re: [PATCH] qemu: work around for "posix-aio-compat"
Date: Wed, 21 Oct 2009 17:54:42 +0200 [thread overview]
Message-ID: <20091021155442.GA24932@redhat.com> (raw)
In-Reply-To: <20091021154234.GA24913@redhat.com>
On Wed, Oct 21, 2009 at 05:42:34PM +0200, Michael S. Tsirkin wrote:
> On Tue, Oct 20, 2009 at 08:57:13PM +0200, Paolo Bonzini wrote:
> > On 10/20/2009 08:39 PM, Mark McLoughlin wrote:
> >> On Thu, 2009-10-08 at 22:37 +0200, Michael S. Tsirkin wrote:
> >>> With commit ee3993069ff55fa6f1c64daf1e09963e340db8e4,
> >>> "posix-aio-compat: avoid signal race when spawning a thread"
> >>> winxp installation on a raw format file fails
> >>> during disk format, with a message "your
> >>> disk may be damaged".
> >>>
> >>> This commit moved signal mask from aio thread to creating thread.
> >>> It turns out if we keep the mask in aio thread as well, the problem
> >>> disappears. It should not be needed, but since this is harmless, let's
> >>> keep it around until someone inclined to debug pthread library internals
> >>> can check this issue.
> >>>
> >>> While we are at it, convert sigprocmask to pthread_sigmask
> >>> as per posix.
> >>
> >> FWIW, I just started hitting a boot hang with qemu.git and --enable-kvm
> >> on a Fedora 11 machine with a Fedora 11 guest.
> >>
> >> I bisected it back to malc's commit, found this thread, applied
> >> Michael's patch and confirmed that it fixes the problem for me too.
> >
> > If anybody can send me the output of compiling the "strange" file with
> > and without the patch, both with "-fdump-tree-all -fdump-rtl-all -O2
> > --save-temps -g" flags, I could try debugging it in GCC.
> >
> > It will be huge, so bz/gz/lzip it.
>
> I've uploaded them here:
> http://www.kernel.org/pub/linux/kernel/people/mst/
> you can't see them in mirrors yet but will be able to soon when
> kernel.org mirroring system catches them.
ok, it's there now:
http://www.kernel.org/pub/linux/kernel/people/mst/posix-aio-corruption.tbz2
once you open this, you will see subdirectories "hang" and "nohang".
the source file is also there, so that you can compare.
>
> > Paolo
next prev parent reply other threads:[~2009-10-21 15:57 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-08 20:37 [Qemu-devel] [PATCH] qemu: work around for "posix-aio-compat" Michael S. Tsirkin
2009-10-08 20:53 ` [Qemu-devel] " malc
2009-10-08 21:13 ` malc
2009-10-08 21:46 ` Michael S. Tsirkin
2009-10-08 22:17 ` malc
2009-10-08 23:19 ` Michael S. Tsirkin
2009-10-09 1:06 ` [Qemu-devel] Emulated network cards Natalia Portillo
2009-10-09 8:54 ` Luca Tettamanti
2009-10-09 13:05 ` Natalia Portillo
2009-10-09 13:16 ` [Qemu-devel] Re: [PATCH] qemu: work around for "posix-aio-compat" malc
2009-10-08 21:00 ` Michael S. Tsirkin
2009-10-20 18:39 ` [Qemu-devel] " Mark McLoughlin
2009-10-20 18:57 ` [Qemu-devel] " Paolo Bonzini
2009-10-21 15:42 ` Michael S. Tsirkin
2009-10-21 15:54 ` Michael S. Tsirkin [this message]
2009-10-21 17:28 ` Paolo Bonzini
2009-10-21 17:35 ` Michael S. Tsirkin
2009-10-21 17:44 ` Paolo Bonzini
2009-10-21 17:46 ` Michael S. Tsirkin
2009-10-21 18:38 ` Paolo Bonzini
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=20091021155442.GA24932@redhat.com \
--to=mst@redhat.com \
--cc=markmc@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.