From: Hollis Blanchard <hollisb@us.ibm.com>
To: kvm-devel <kvm-devel@lists.sourceforge.net>
Cc: kvm-ppc-devel <kvm-ppc-devel@lists.sourceforge.net>
Subject: KVM's signal masking
Date: Thu, 14 Feb 2008 13:19:18 -0600 [thread overview]
Message-ID: <1203016758.24513.19.camel@basalt> (raw)
We're having a hard time tracking down a PowerPC bug that seems to be
related to KVM's signal handling (SIGALRM in particular), so we're
trying to understand the overall signal handling design.
It looks like the run sequence goes something like this:
1. qemu: block SIGALRM (and a couple others)
2. qemu: call kvm_run
3. kvm: unblocks SIGALRM
4. kvm: executes guest
5. kvm: exit handler checks signal_pending(); if true returns to
qemu
6. kvm: re-blocks SIGALRM and returns to qemu
7. qemu: kvm_eat_signals() synchronously calls the normal handlers
for blocked signals
I'm confused about a few things. First, why must qemu unblock these
signals? AFAICS signal_pending() still returns true regardless of the
process's signal mask.
Second, why are we synchronously calling the signal handlers in the
first place? Why not allow the signals simply to be delivered?
--
Hollis Blanchard
IBM Linux Technology Center
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
next reply other threads:[~2008-02-14 19:19 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-14 19:19 Hollis Blanchard [this message]
2008-02-15 13:42 ` [kvm-ppc-devel] KVM's signal masking Avi Kivity
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=1203016758.24513.19.camel@basalt \
--to=hollisb@us.ibm.com \
--cc=kvm-devel@lists.sourceforge.net \
--cc=kvm-ppc-devel@lists.sourceforge.net \
/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