From: Gleb Natapov <gleb@redhat.com>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCHv3] report that QEMU process was killed by a signal
Date: Thu, 31 Mar 2011 11:04:46 +0200 [thread overview]
Message-ID: <20110331090446.GI7766@redhat.com> (raw)
In-Reply-To: <AANLkTik2WiCuFH3-ejQR5FGk9=Lm9vuo1=N0NSX83u=s@mail.gmail.com>
On Wed, Mar 30, 2011 at 09:51:29PM +0100, Peter Maydell wrote:
> 2011/3/30 Gleb Natapov <gleb@redhat.com>:
> > On Wed, Mar 30, 2011 at 07:53:41PM +0100, Peter Maydell wrote:
> >> I'm not convinced about the utility of printing the pid, personally.
> >> Most programs get along fine without printing anything when
> >> they receive a terminal signal.
>
> > Well qemu is a bit of special case. It is long running process that
> > takes huge amount of memory and, as suchm it becomes a target of various
> > monitoring script which, when configured incorrectly, start killing
> > perfectly valid guests. In addition killing of the guest looks exactly
> > like guest shutdown to management software because we call shutdow_request
> > in the signal handler.
>
> That sounds like a flaw in the communication protocol between
> qemu and the management software, which would be better fixed
> by having qemu communicate the reason for exit directly (ie
> not just by printing to stderr), surely?
>
Yes, but this is more complex and changes QMP protocol.
> > Exactly. This should do the trick (not tested).
>
> Looks good, and a test shows I don't get the segfault any more.
>
> Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
>
> although I guess you'll want to submit it with a sensible git
> commit message :-)
>
Will do.
--
Gleb.
next prev parent reply other threads:[~2011-03-31 9:04 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-15 11:56 [Qemu-devel] [PATCHv3] report that QEMU process was killed by a signal Gleb Natapov
2011-03-25 12:04 ` Gleb Natapov
2011-03-26 13:50 ` Blue Swirl
2011-03-26 13:55 ` Gleb Natapov
2011-03-26 14:12 ` Blue Swirl
2011-03-30 18:39 ` Peter Maydell
2011-03-30 18:43 ` Gleb Natapov
2011-03-30 18:53 ` Peter Maydell
2011-03-30 19:04 ` Gleb Natapov
2011-03-30 20:51 ` Peter Maydell
2011-03-31 9:04 ` Gleb Natapov [this message]
2011-03-30 18:49 ` Anthony Liguori
2011-03-30 18:51 ` Gleb Natapov
2011-03-30 21:35 ` malc
2011-03-31 5:35 ` Gleb Natapov
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=20110331090446.GI7766@redhat.com \
--to=gleb@redhat.com \
--cc=peter.maydell@linaro.org \
--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).