From: Avi Kivity <avi@redhat.com>
To: Marcelo Tosatti <mtosatti@redhat.com>
Cc: Gleb Natapov <gleb@redhat.com>, kvm <kvm@vger.kernel.org>
Subject: Re: [PATCH v2] fix qemu-kvm sigsegv at exit
Date: Sun, 01 Nov 2009 17:39:06 +0200 [thread overview]
Message-ID: <4AEDAB9A.3040608@redhat.com> (raw)
In-Reply-To: <20091028223845.GA18038@amt.cnet>
On 10/29/2009 12:38 AM, Marcelo Tosatti wrote:
>
>> This will miss an event at the very beginning of the loop (powerdown
>> requested before we had a chance to spin up?). I think it should be
>> fine since there will be a pending signal which will break us out of
>> kvm_cpu_exec() before it has a chance to do anything (i.e. spin in the
>> guest).
>>
>> So, I think it's fine, but please double check the above.
>>
> That can happen but only with the unpatched version, where
> kvm_main_loop_wait eats the signal, sets env->stopped = 1,
> and proceeds to kvm_cpu_exec.
> With the patch, this is not the case.
>
> As before, the signal sender will send an IPI with smp_send_reschedule
> (and vcpu_enter_guest checks sigpending after disabling interrupts).
>
Fair enough, double bugfix; applied, thanks.
--
error compiling committee.c: too many arguments to function
prev parent reply other threads:[~2009-11-01 15:39 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-26 18:46 fix qemu-kvm sigsegv at exit Marcelo Tosatti
2009-10-26 18:58 ` Gleb Natapov
2009-10-26 19:05 ` Marcelo Tosatti
2009-10-27 15:33 ` [PATCH v2] " Marcelo Tosatti
2009-10-28 9:42 ` Avi Kivity
2009-10-28 22:38 ` Marcelo Tosatti
2009-11-01 15:39 ` Avi Kivity [this message]
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=4AEDAB9A.3040608@redhat.com \
--to=avi@redhat.com \
--cc=gleb@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=mtosatti@redhat.com \
/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