From: Paolo Bonzini <pbonzini@redhat.com>
To: "Gonglei (Arei)" <arei.gonglei@huawei.com>,
"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [Bug ?]Qemu segfault because of non-initial kvm_state variable
Date: Tue, 03 Mar 2015 11:11:35 +0100 [thread overview]
Message-ID: <54F588D7.6060804@redhat.com> (raw)
In-Reply-To: <33183CC9F5247A488A2544077AF1902086E48F40@SZXEMA503-MBS.china.huawei.com>
On 03/03/2015 09:01, Gonglei (Arei) wrote:
> Hi,
>
> I encountered a Qemu segfault problem in my environment.
>
> # ./qemu-system-x86_64 -enable-kvm -m 4096 -smp 4 -name redhat6.2 -drive file=/home/win2008_ent_r2_64_01,\
> if=none,id=drive-ide0-0-0 -device ide-hd,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0 -vnc :10
> Segmentation fault
Should be fixed by:
diff --git a/kvm-all.c b/kvm-all.c
index 05a79c2..e04a0ca 100644
--- a/kvm-all.c
+++ b/kvm-all.c
@@ -1679,7 +1679,7 @@ void kvm_flush_coalesced_mmio_buffer(void)
{
KVMState *s = kvm_state;
- if (s->coalesced_flush_in_progress) {
+ if (!s || s->coalesced_flush_in_progress) {
return;
}
Paolo
next prev parent reply other threads:[~2015-03-03 10:11 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-03 8:01 [Qemu-devel] [Bug ?]Qemu segfault because of non-initial kvm_state variable Gonglei (Arei)
2015-03-03 10:11 ` Paolo Bonzini [this message]
2015-03-03 10:21 ` Peter Maydell
2015-03-03 10:37 ` Paolo Bonzini
2015-03-03 10:27 ` 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=54F588D7.6060804@redhat.com \
--to=pbonzini@redhat.com \
--cc=arei.gonglei@huawei.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).